ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shai Koren" <s...@perceptionbe.com>
Subject RE: jar MANIFEST.MF
Date Mon, 11 Feb 2002 11:33:47 GMT
hi thomas

try this
 <!-- Build client.jar -->
<target depends="compile-classes" name="jar-classes">
    <jar jarfile="${build.jar}/client.jar"
manifest="${build.output}/clientMan.mf">
      <fileset dir="${build.output}">
        <include name="**/*"/>
      </fileset>
   </jar>
</target>



-----Original Message-----
From: waffel@imn.htwk-leipzig.de [mailto:waffel@imn.htwk-leipzig.de]On
Behalf Of Thomas Wabner
Sent: 11 February 2002 11:18
To: 'Ant Users List'
Subject: jar MANIFEST.MF


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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message