Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-03 Thread Benson Margulies
Not obviously to me. fork defaults to false in ant 1.7.1, so I would have expected the same. On Fri, Jul 3, 2009 at 12:49 PM, clconway wrote: > > You are right. fork="true" in the Ant java task works too. But this was not > necessary in the original Ant build script. Is there an explanation in the

Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-03 Thread clconway
You are right. fork="true" in the Ant java task works too. But this was not necessary in the original Ant build script. Is there an explanation in the documentation of why antrun behaves differently? -Chris bimargulies wrote: > > A simple fork=yes would have done the job. > > On Fri, Jul 3,

Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-03 Thread Benson Margulies
A simple fork=yes would have done the job. On Fri, Jul 3, 2009 at 12:01 PM, clconway wrote: > > The problem seems to be that Rats! calls System.exit() (or similar), > terminating the JVM. I would have thought that Ant would wrap this (the java > task is copied over from a build.xml and it doesn't

Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-03 Thread clconway
The problem seems to be that Rats! calls System.exit() (or similar), terminating the JVM. I would have thought that Ant would wrap this (the java task is copied over from a build.xml and it doesn't terminate the Ant build), but the following works by forcing the Rats! process into a separate JVM:

Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-02 Thread clconway
Funny story. I tried replacing the Ant task with a Maven plugin, by writing a RatsMojo class that invokes xtc.parser.Rats directly and replacing the plugin element above with edu.nyu.xtc maven-xtc-plugin generate-sources rats

Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-02 Thread clconway
Stephen Connolly-2 wrote: > > you need to use buildhelper-maven-plugin to attach the generated-sources > directory. Maven does not know that you've generated additional sources. > Most/all of the source generator maven plugins will add the > generated-sources/pluginname folder as an additional

Re: maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-01 Thread Stephen Connolly
you need to use buildhelper-maven-plugin to attach the generated-sources directory. Maven does not know that you've generated additional sources. Most/all of the source generator maven plugins will add the generated-sources/pluginname folder as an additional source path... buildhelper is there to

maven-antrun-plugin: Java classes don't compile after an Ant task

2009-07-01 Thread Christopher L Conway
My project generates source code using the XTC parser generator (http://cs.nyu.edu/rgrimm/xtc/). XTC doesn't have a Maven plugin that I'm aware of, so I'm trying to build the parser using an Ant Java task, like so: maven-antrun-plugin generate-sources