ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r349276 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
Date Sun, 27 Nov 2005 18:54:25 GMT
Author: bodewig
Date: Sun Nov 27 10:54:22 2005
New Revision: 349276

URL: http://svn.apache.org/viewcvs?rev=349276&view=rev
Log:
reject non-existant resources

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java?rev=349276&r1=349275&r2=349276&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java Sun Nov 27 10:54:22
2005
@@ -115,6 +115,9 @@
         if (property == null) {
             throw new BuildException("output property not defined");
         }
+        if (!src.isExists()) {
+            throw new BuildException(src + " doesn't exist");
+        }
         InputStream is = null;
         BufferedInputStream bis = null;
         Reader instream = null;



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


Mime
View raw message