donaldp 01/10/24 02:11:27
Modified: src/main/org/apache/tools/ant/taskdefs Zip.java
Log:
A fix to make the cleanUp method do full cleanup.
PR: 4366
Submitted by: [EMAIL PROTECTED]
Revision Changes Path
1.53 +9 -1
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
Index: Zip.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- Zip.java 2001/09/26 07:07:01 1.52
+++ Zip.java 2001/10/24 09:11:26 1.53
@@ -97,7 +97,7 @@
* Encoding to use for filenames, defaults to the platform's
* default encoding.
*/
- private String encoding = null;
+ private String encoding;
/**
* This is the name/location of where to
@@ -751,5 +751,13 @@
protected void cleanUp() {
addedDirs = new Hashtable();
addedFiles = new Vector();
+ filesets = new Vector();
+ zipFile = null;
+ baseDir = null;
+ doCompress = true;
+ doUpdate = false;
+ doFilesonly = false;
+ addingNewFiles = false;
+ encoding = null;
}
}