Thank you for your answers, but they doesn't help me a lot. I am not using the antrun plugin, but using the strategy documented in http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html where it is outlined how you through a mapping file and a build.xml file is able to wrap ant functionality in an 'automatically' generated mojo.
The whole idea is to wrap our ant functionality in a plugin which can be used from a variety of projects with an ease. If I was to use the antrun plugin, I would have my ant functionality copied around multiple poms. So...I still need to get a classpath refid from the mappings file to the build.xml Any other ideas? /Henrik On 1/17/06, Scokart Gilles <[EMAIL PROTECTED]> wrote: > If you launch a separated ant script ( using the "ant" task into the pom), > you should not forget the inheritRef attributes. Otherwise, you don't have > the reference into your xxx-build.xml. > > Regards, > Gilles > > > -----Original Message----- > > From: Chris Berry [mailto:[EMAIL PROTECTED] > > Sent: 17 January 2006 15:14 > > To: Maven Users List > > Subject: Re: [m2] Ant driven plugins and classpath refid's > > > > Did you follow this doc; > > http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html > > Cheers, > > -- Chris > > > > On 1/17/06, Henrik Mejlgaard <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > From the documentation in > > > http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html, > > > I have successfully created the Hello World Ant based plugin. > > > > > > My problem is now to implement a more advanced ant-based mojo. > > > Specifically, I have troubles finding out how to get a ant classpath > > > refid to be used in a taskdef in the *.build.xml. > > > My taskdef looks as follows: > > > > > > > > > <target name="generate"> > > > <taskdef name="ejbdoclet" > > classname="xdoclet.modules.ejb.EjbDocletTask"> > > > <classpath> > > > <path refid="plugin.dependency.classpath"/> > > > </classpath> > > > </taskdef> > > > ...... > > > </target> > > > > > > How do I inject the plugin.dependency.classpath from the *.mojos.xml? > > > > > > Regards, > > > > > > Henrik > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]