Jalopy and Checkstyle operate the same in that respect. I am not sure what you mean by modifying the ant plugin. Do you mean the actual maven plugin? I have never edited a plugin in the past. Or is there another way?
All I want is something like: <ant antfile="classpath: build.xml" inheritRefs="true"> where classpath: means the plugin should search the dependency classpath for the LIB. On 7/28/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Its not a bad idea, but I don't think the ant plugin currently > supports such a use case. The plugin could probably be modified to > work like that, and probably without a lot of trouble. I'd take a look > at Jalopy plugin and see how it resolves resources that it uses. > > Also take a look at Checkstyle, it does the same thing: > > http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html > > Wayne > > On 7/28/07, Mick Knutson <[EMAIL PROTECTED]> wrote: > > I saw a reference to creating a build-tools.jar to use in a multi module > > project for Jalopy: > > > > http://mojo.codehaus.org/jalopy-maven-plugin/multimodule.html > > > > > > I have dozens of projects that have the need to use the same ant > > build.xmlscript and I was hoping to just create a dependancy upon it > > like > > org.delta.build-tools:build.xml: > > > > Here is what my antrun plugin might look like: > > > > <plugin> > > <artifactId>maven-antrun-plugin</artifactId> > > <executions> > > <execution> > > <phase>generate-sources</phase> > > <configuration> > > <tasks> > > > > <ant antfile=" > > org.delta.build-tools:build.xml" inheritRefs="true"> > > <target name="compile"/> > > </ant> > > > > </tasks> > > </configuration> > > <goals> > > <goal>run</goal> > > </goals> > > </execution> > > </executions> > > > > <dependencies> > > > > <dependency> > > <groupId>com.sun</groupId> > > <artifactId>tools</artifactId> > > <version>1.5.0_08</version> > > <scope>system</scope> > > <systemPath>${java.home > > }/../lib/tools.jar</systemPath> > > </dependency> > > > > <!-- HOPING TO ADD MY BUILD TOOLS HERE... --> > > <dependency> > > <groupId>org.delta</groupId> > > <artifactId>build-tools</artifactId> > > <version>1.0.0.0</version> > > <type>jar</type> > > </dependency> > > > > </plugin> > > > > > > -- > > > > Thanks, > > Mick Knutson > > > > http://www.baselogic.com > > http://www.blincmagazine.com > > http://www.djmick.com > > http://www.myspace.com/mickknutson > > http://www.myspace.com/djmick_dot_com > > http://www.myspace.com/sexybeotches > > http://www.thumpradio.com > > --- > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---