Problems with Before Compilation ant tasks in IPR runner

Hi all,

We had a problem building our project using the IPR runner today. We'd added some JAXB objects which are generated and compiled as part of our ant build, so we registered the task to be executed before compilation. The source code was generated in a src-generated directory at the same level as src, and this directory was registered as a source folder in the project settings. This all worked fine in local, but running it within TeamCity didn't work - the compilation failed because it couldn't find the generated classes. What seems to happen is the build process starts, notices that the src-generated directory doesn't exist and de-registers it as a source folder, then after that runs the task that creates the folder. The workaround is to have the src-generated dir checked into subversion, and have clean simply clean its contents, not remove the whole folder.

Shall I file a JIRA?

Cheers,
Colin

3 comments

Before and after tasks are currently not supported by IPR runner. Please
submit JIRA request for this.

--
Pavel Sher

"Colin Fleming" <no_reply@jetbrains.com> wrote in message
news:23205770.1176732644670.JavaMail.itn@is.intellij.net...

Hi all,

>

We had a problem building our project using the IPR runner today. We'd
added some JAXB objects which are generated and compiled as part of our
ant build, so we registered the task to be executed before compilation.
The source code was generated in a src-generated directory at the same
level as src, and this directory was registered as a source folder in the
project settings. This all worked fine in local, but running it within
TeamCity didn't work - the compilation failed because it couldn't find the
generated classes. What seems to happen is the build process starts,
notices that the src-generated directory doesn't exist and de-registers it
as a source folder, then after that runs the task that creates the folder.
The workaround is to have the src-generated dir checked into subversion,
and have clean simply clean its contents, not remove the whole folder.

>

Shall I file a JIRA?

>

Cheers,
Colin



0

Hello, Colin!

We already have an issue to address this problem: http://www.jetbrains.net/jira/browse/TW-1589

You can watch/vote for it, if you like.

--
Best regards,

Yegor Yarko
Quality Assurance Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Thanks for the quick response, guys. Curiously, my Before Compilation task does actually get run, there's just the odd side effect I quoted above. But I've voted for the issue anyway!

Cheers,
Colin

0

Please sign in to leave a comment.