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 4366] New: - The cleanUp() method in the Zip task does not completely clean up.
Date Tue, 23 Oct 2001 16:00:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4366

The cleanUp() method in the Zip task does not completely clean up.

           Summary: The cleanUp() method in the Zip task does not completely
                    clean up.
           Product: Ant
           Version: 1.4.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: acl1@notes.ntrs.com


The cleanUp() method in Zip.java of the Zip task does the following:

    protected void cleanUp() {
        addedDirs = new Hashtable();
        addedFiles = new Vector();
    }

It does not reset the 'filesets' variable.  As a result, when the instance
is reused to zip some other files, the files zipped in the prior usage are
included in later usages too.  The clenaUp() method should have been as 
follows:


    protected void cleanUp() {
        addedDirs = new Hashtable();
        addedFiles = new Vector();
        filesets = new Vector();
    }

Thank you for your attention.

Mime
View raw message