Hi Chris!
The classpath to the compiled classes can be injected into your Java Mojo:
/**
* List of all class path elements that will be searched for...
*
* @parameter expression="${project.compileClasspathElements}"
* @required
* @readonly
*/
protected List classpathElements;
So you don't even need an additional configuration in your pom.
LieGrue,
strub
--- Chris Graham <[email protected]> schrieb am Mi, 21.1.2009:
> Von: Chris Graham <[email protected]>
> Betreff: Getting classpath list from non ant-run plugins
> An: [email protected]
> Datum: Mittwoch, 21. Januar 2009, 12:42
> Hi all.
>
> Using the ant-run plugin, you can get properties, like
> this:
>
> <property name="project.build.classpath"
> refid="maven.compile.classpath" />
>
> What I'd like to do it to get access to the same
> classpath entries but from
> a normal (ie not an ant-run derivative) plugin.
>
> Ideally, I'd like to use something like this:
>
> <configuration>
>
> <classPath>${maven.compile.classpath}</classPath>
> </configuration>
>
> Or some other variable.
>
> Can this be done?
>
> -Chris
>
> --
> View this message in context:
> http://www.nabble.com/Getting-classpath-list-from-non-ant-run-plugins-tp21581532p21581532.html
> Sent from the Maven - Users mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]