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 2005/10/29 15:08:39 UTC

svn commit: r329407 - /ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java

Author: bodewig
Date: Sat Oct 29 06:08:35 2005
New Revision: 329407

URL: http://svn.apache.org/viewcvs?rev=329407&view=rev
Log:
add a few more checks

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java?rev=329407&r1=329406&r2=329407&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java Sat Oct 29 06:08:35 2005
@@ -251,6 +251,12 @@
         if (src == null) {
             return super.getDirectoryScanner(p);
         }
+        if (!src.isExists()) {
+            throw new BuildException("the archive doesn't exist");
+        }
+        if (src.isDirectory()) {
+            throw new BuildException("the archive can't be a directory");
+        }
         ArchiveScanner as = newArchiveScanner();
         as.setSrc(src);
         super.setDir(p.getBaseDir());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org