When a jar file needs to contain a manifest with particular content,
we archive a copy of that manifest under source control, and then
use the "manifest" tag in the <jar> task to tell ANT to use that
particular manifest when creating the jar file.
Hope this helps.
--dave
Thomas Wabner
<[EMAIL PROTECTED] To: "'Ant Users List'"
<[EMAIL PROTECTED]>
eipzig.de> cc:
Sent by: Subject: jar MANIFEST.MF
[EMAIL PROTECTED]
pzig.de
02/11/2002 05:18 AM
Please respond to
"Ant Users List"
Hello,
I'am new on this list and have first one
question:
Is there a posibillity to use the ant builtin
"jar" command to say the jar there ist one Main-class
in.
Normal the way is to step following commands in the shell:
1. create a txt file <maintxt> and put following code inside:
Main-Class: myMainClass
2. run the jar command like follow: > jar -cmf maintxt app.jar
./application
Now you have an jar that you can use with > java -jar app.jar
and the java runs the application with the main class myMainClass
I don't found a way to say this in build.xml and i will NOT
use the exec command.
Any Ideas?
Thanks and greating
Thomas Wabner
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- jar MANIFEST.MF Thomas Wabner
- Re: jar MANIFEST.MF Conor MacNeill
- RE: jar MANIFEST.MF shai Koren
- Re: jar MANIFEST.MF David . Bailey
- Re: jar MANIFEST.MF Stefan Bodewig
