How to place the project classpath into a ressource file?

2008-11-29 Thread Stephan Niedermeier
Hi, I'm using Maven2 to build and assemble my project under Win XP. The project contains a Java launcher. This launcher needs to know all jars in the project. This will be done using a configuration file (launcher.properties) and the property app.classpath. The hard coded entry for the

Re: How to place the project classpath into a ressource file?

2008-11-29 Thread Brian Fox
You can use the maven-dependency-plugin:build-classpath goal --Brian (mobile) On Nov 29, 2008, at 11:28 AM, Stephan Niedermeier [EMAIL PROTECTED] wrote: Hi, I'm using Maven2 to build and assemble my project under Win XP. The project contains a Java launcher. This launcher needs to know

Re: How to place the project classpath into a ressource file?

2008-11-29 Thread Stephan Niedermeier
Hi Brian, thanks for the hint, but it seems that the build-classpath goal calculates the full path to the jars (e.g. C:/project/lib/myJar.jar). Is there a way to make this path relatively to, let's say lib/ of the assembled folder? Thanks a lot. Regards Stephan Brian Fox schrieb: You can

Re: How to place the project classpath into a ressource file?

2008-11-29 Thread Stephan Niedermeier
Hi, got it. Thanks. For those interested in: Use the prefix together with the outputFilterFile parameter of the build-classpath goal. Example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId

Re: How to place the project classpath into a ressource file?

2008-11-29 Thread Brian Fox
I don't think so but it should be easy to patch --Brian (mobile) On Nov 29, 2008, at 1:39 PM, Stephan Niedermeier [EMAIL PROTECTED] wrote: Hi Brian, thanks for the hint, but it seems that the build-classpath goal calculates the full path to the jars (e.g. C:/project/lib/ myJar.jar).

Re: How to place the project classpath into a ressource file?

2008-11-29 Thread Brian Fox
Heh... I Forgot about that --Brian (mobile) On Nov 29, 2008, at 2:06 PM, Stephan Niedermeier [EMAIL PROTECTED] wrote: Hi, got it. Thanks. For those interested in: Use the prefix together with the outputFilterFile parameter of the build-classpath goal. Example: plugin