DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=22865>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=22865 Zip whenempty attribute is broken ------- Additional Comments From [EMAIL PROTECTED] 2004-06-04 10:12 ------- Here is my test build.xml file <project default="e"> <target name="e"> <delete quiet="yes" dir="empty"/> <mkdir dir="empty"/> <delete quiet="yes" file="e.zip"/> <!-- this makes an empty e.zip file --> <zip destfile="e.zip" whenempty="skip" basedir="empty" /> </target> <target name="k"> <delete quiet="yes" dir="empty"/> <mkdir dir="empty"/> <delete quiet="yes" file="e.zip"/> <!-- this correctly skips making the e.zip file --> <zip destfile="e.zip" whenempty="skip" basedir="empty" includes="**/*"/> </target> </project> The problem is the "basedir" attribute, this causes Zip#grabResources() to return an entry. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]