From 7846d336a33ef8c38da2938ca44cd6ae62ecb65a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 30 Nov 2000 09:31:41 +0000 Subject: [PATCH] Tell the user that failed - if it fails. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268274 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Property.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Property.java b/src/main/org/apache/tools/ant/taskdefs/Property.java index 962b7ae22..81401d44e 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Property.java +++ b/src/main/org/apache/tools/ant/taskdefs/Property.java @@ -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); } }