From bf4ff9c363ade1e0a8105c3201fbb37c48e0f604 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 2 Apr 2001 08:05:57 +0000 Subject: [PATCH] make sure ZipFileSet works if the current working directory doesn't exist. Submitted by: David Rees git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268902 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/types/ZipFileSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/types/ZipFileSet.java b/src/main/org/apache/tools/ant/types/ZipFileSet.java index 7f679326c..45d074ce5 100644 --- a/src/main/org/apache/tools/ant/types/ZipFileSet.java +++ b/src/main/org/apache/tools/ant/types/ZipFileSet.java @@ -165,7 +165,7 @@ public class ZipFileSet extends FileSet { if (srcFile != null) { ZipScanner zs = new ZipScanner(); zs.setSrc(srcFile); - super.setDir(new File(".")); + super.setDir(p.getBaseDir()); setupDirectoryScanner(zs, p); zs.init(); return zs;