ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aarti Chandnani <Aarti.Chandn...@XUMA.com>
Subject RE: How to update a jar?
Date Wed, 09 May 2001 22:50:28 GMT
i think you can do this:

move file="lib/myarchive.jar" tofile="lib/tmp.jar" />
<jar jarfile="lib/myarchive.jar" ... >
  <fileset dir="." includes="my/package/name/file.name" />
  <zipfileset src="lib/tmp.jar" includes="**" />
</jar>
<delete file="lib/tmp.jar" />

use the zipfileset just the way above
and instead of jar call zip!


-----Original Message-----
From: Jon Skeet [mailto:jon.skeet@peramon.com]
Sent: Wednesday, May 09, 2001 3:48 PM
To: ant-user@jakarta.apache.org
Subject: RE: How to update a jar?


> use zip task instead 
> its like jar but doesnt create the manifest file! 

The jar task actually extends the zip task, IIRC. Does the zip
task have update features? I didn't think so, but I could be 
wrong.

Jon

Mime
View raw message