Browse Source

A fix to make the cleanUp method do full cleanup.

PR: 4366
Submitted by: acl1@notes.ntrs.com


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269818 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
6cf09d26ff
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 9
- 1
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -97,7 +97,7 @@ public class Zip extends MatchingTask {
* Encoding to use for filenames, defaults to the platform's * Encoding to use for filenames, defaults to the platform's
* default encoding. * default encoding.
*/ */
private String encoding = null;
private String encoding;


/** /**
* This is the name/location of where to * This is the name/location of where to
@@ -751,5 +751,13 @@ public class Zip extends MatchingTask {
protected void cleanUp() { protected void cleanUp() {
addedDirs = new Hashtable(); addedDirs = new Hashtable();
addedFiles = new Vector(); addedFiles = new Vector();
filesets = new Vector();
zipFile = null;
baseDir = null;
doCompress = true;
doUpdate = false;
doFilesonly = false;
addingNewFiles = false;
encoding = null;
} }
} }

Loading…
Cancel
Save