John Gerken <[EMAIL PROTECTED]> 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

Reply via email to