ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r329407 - /ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveFileSet.java
Date Sat, 29 Oct 2005 13:08:39 GMT
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


Mime
View raw message