ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22865] - Zip whenempty attribute is broken
Date Fri, 04 Jun 2004 10:12:20 GMT
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 peter.reilly@corvil.com  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message