ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: update a jar file w/in Ant?
Date Wed, 18 Apr 2001 15:22:11 GMT
John Gerken <John_Gerken@us.ibm.com> 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
clarified.

> Could I ask you to please give us a brief example of how to add
> ./my/package/name/file.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/file.name" />
  <zipfileset src="lib/tmp.jar" includes="**" />
</jar>
<delete file="lib/tmp.jar" />

... 

You get the idea

Stefan

Mime
View raw message