ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50115] New: ZIP emits wrong message and creates corrupt archive when resource collections used
Date Tue, 19 Oct 2010 18:14:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50115

           Summary: ZIP emits wrong message and creates corrupt archive
                    when resource collections used
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: isaac@shabtay.com


The following task:

    <zip destfile="C:/temp/me.zip" whenempty="skip">
        <fileset dir="C:/temp" includes="d**"/>
    </zip>

Works well. The following, though:

    <zip destfile="C:/temp/me2.zip" whenempty="skip">
        <resources>
            <fileset dir="C:/temp" includes="d**"/>
        </resources>
    </zip>

Doesn't:

1) Ant emits message:

Warning: skipping zip archive C:\temp\me2.zip because no files were included.

2) Ant actually goes ahead and creates the archive, but the archive is
corrupted and doesn't contain what it's supposed to contain. Each file
beginning with "d" is actually inserted into the ZIP file as an empty
directory.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message