ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: update a jar file w/in Ant?
Date Wed, 18 Apr 2001 15:22:11 GMT
John Gerken <> wrote:

> How is it that <move> facilitates this except to rename the existing
> jar?

Exactly for that purpose

> Also the documentation seems to imply that <zipfileset> is only
> valid for the <zip> task.

and <jar> and <war> (and <ear> in 1.4alpha).  The docs need to be

> Could I ask you to please give us a brief example of how to add
> ./my/package/name/ to ./lib/myarchive.jar?

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


You get the idea


View raw message