You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2001/04/02 10:05:58 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types ZipFileSet.java
bodewig 01/04/02 01:05:58
Modified: src/main/org/apache/tools/ant/types ZipFileSet.java
Log:
make sure ZipFileSet works if the current working directory doesn't exist.
Submitted by: David Rees <d....@usa.net>
Revision Changes Path
1.3 +1 -1 jakarta-ant/src/main/org/apache/tools/ant/types/ZipFileSet.java
Index: ZipFileSet.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/ZipFileSet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ZipFileSet.java 2001/01/30 10:56:08 1.2
+++ ZipFileSet.java 2001/04/02 08:05:57 1.3
@@ -165,7 +165,7 @@
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;