From 6cf09d26ffb60c6d9c780b92203ceb6b98b4182c Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Wed, 24 Oct 2001 09:11:26 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/taskdefs/Zip.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java index 68ec6647d..99b4b53f8 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Zip.java +++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java @@ -97,7 +97,7 @@ public class Zip extends MatchingTask { * 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 @@ public class Zip extends MatchingTask { 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; } }