Browse Source

reject non-existant resources

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@349276 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
cdce6d4618
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/LoadResource.java

+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/LoadResource.java View File

@@ -115,6 +115,9 @@ public class LoadResource extends Task {
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;


Loading…
Cancel
Save