Re: How to access the plugin class path in ant based mojo

2009-05-07 Thread gbremer

Maybe the following link to another posting showing the same problem makes my
problem more clear:

http://www.mail-archive.com/d...@maven.apache.org/msg75016.html

Maybe some more general question can help. Is there a running example that
shows how to invoke a java ant task with a thirdparty main class in an ant
based maven plugin? How can I construct the classpath in the java task to
refer to the thirdparty jar? 
* It does not make sense to hardwire a fixed path. 
* I could use a plugin parameter which contains the class path, but this is
not what I want, because I have to construct the class path myself with
different values in different projects.
* Is it possible to refer to the dependencies listed in the plugin pom (not
the project pom where the plugin is executed)? Then maven could construct
the class path for me.  

Gerd
-- 
View this message in context: 
http://www.nabble.com/How-to-access-the-plugin-class-path-in-ant-based-mojo-tp23409880p23425215.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to access the plugin class path in ant based mojo

2009-05-06 Thread gbremer

Hi, I'm new to maven plugin development. I'm writing an ant based maven
plugin. The ant script contains a java task which requires the classpath of
the plugin, i.e. the dependencies in the plugin pom. How can I construct
the-plugin-classpath?

myplugin.build.xml:

java …
  classpath the-plugin-classpath
/java

Gerd

-- 
View this message in context: 
http://www.nabble.com/How-to-access-the-plugin-class-path-in-ant-based-mojo-tp23409996p23409996.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org