I want to add a single file to an archive. Looking through the docs, I
expected to be able to write:
<zip includes="${to}" destfile="${backup_zip}"
but this returned the error: "basedir attribute must be set, or at least one
fileset must be given!".
So I ended up with:
<dirname property="to.path" file="${to}"/>
<basename property="to.filename" file="${to}"/>
<zip destfile="${backup_zip}">
<fileset dir="${to.path}" includes="${to.filename}"/>
</zip>
That seems a little laborious - is there an easier way?
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>