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 property could look like this for example:

app.classpath=lib/commons-logging.jar;lib/commons-httpclient.jar

This works perfectly. But instead of hard coding and maintaining the classpath in the configuration file as seen above, I would prefer using some sort of Maven 2 Filter which calculates the classpath string automatically and then places this string into my configuration file on the predefined position. For example similar to this:

app.classpath=${someVarHoldingTheGeneratedClasspathString}

Im wondering whether there is a solution for this in Maven? I couldn't find any hint in the Maven2 Filter docs, because there is no such variable I could use. Maybe I have overseen something?

Any ideas how I can retrieve the classpath string and place it into my configuration file?

PS: Putting the classpath into the META-INF using the <manifest/> tag is not an option for me, because its not supported by the Launcher.

Thanks in advance.

Best regards
Stephan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to