On Wednesday 23 February 2005 15:32, Vincent Massol wrote:
> > I need to have tools.jar on the classpath as I'm
> > writing a javadoc taglet. Also, I'm using Eclipse and create its
> > .classpath with the maven eclipse plugin, which needs to add in
> > tools.jar, too.
>
> Ah I see... Several possible use cases:
>
> - you are the one writing a custom plugin or some maven.xml code. You
> can use ${tools.jar} as you wish
> - you are using an existing plugin and this plugin does not offer an
> easy way to add some custom classpath. You can use this maven.xml
> scriptlet (but then I'm not 100% sure if it's better than your
> solution...):
>
> <ant:path id="mycp">
> <ant:pathelement location="${tools.jar}"/>
> </ant:path>
>
> <maven:addPath id="maven.dependency.classpath" refid="mycp"/>
Vincent, thanks for your suggestions. I think for now I stick to my
original, if inelegant, solution.
Michael
--
Michael Schuerig Those who call the shots
mailto:[EMAIL PROTECTED] Are never in the line of fire
http://www.schuerig.de/michael/ --Ani DiFranco, Not So Soft
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]