Browse Source

Tell the user that <property resource="..."> failed - if it fails.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268274 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
7846d336a3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/taskdefs/Property.java

+ 4
- 2
src/main/org/apache/tools/ant/taskdefs/Property.java View File

@@ -23,7 +23,7 @@
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* 4. The names "The Jakarta Project", "Ant", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact apache@apache.org.
@@ -182,9 +182,11 @@ public class Property extends Task {
if (is != null) {
props.load(is);
addProperties(props);
} else {
log("Unable to find resource " + name, Project.MSG_WARN);
}
} catch (Exception ex) {
ex.printStackTrace();
throw new BuildException(ex, location);
}
}



Loading…
Cancel
Save