Hello
Gradle enables to build a jar with a manifest that contains the
classpath and the main class, which is just fine if you want to run
your program with the -jar option (java -jar mylib.jar). However, I d
like to run my jar from a script file that explicitly lists the
classpath and the main class to start with. How could we do that in
gradle? the output should be typically written in a file that would
contain something like that:

set Classpath=lib1.jar;lib2.jar; etc...
set MainClass="mymainClass"
java -cp %claspath% %myMainClass%

This is more or less the same but having this written in a file
enables easy addition of classpaths or command line options (specific
to seploiement environnement) on the fly by overwriting the file,
instead of looking deeply inside the Manifest of the jar...

Thanks for any hep.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to