Yes, I mean literally modifying the maven-antrun-plugin code itself. So, go pull down the code from Antrun: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java?view=markup and Checkstyle: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java?view=markup and Jalopy: https://svn.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/src/main/java/org/codehaus/mojo/jalopy/JalopyMojo.java
And compare/contrast how their configuration files are loaded, and probably you could figure out rather quickly how/where you can change the Antrun plugin (the Java code itself) so it could load build.xml files from the dependency (via classpath) to enable similar functionality. Or post a bug in JIRA against Antrun and hope someone will do the same for you at some point, if you can wait an undefined period of time... Wayne On 7/29/07, Mick Knutson <[EMAIL PROTECTED]> wrote: > 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 > --- > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
