ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Property.java
Date Thu, 30 Nov 2000 09:31:42 GMT
bodewig     00/11/30 01:31:41

  Modified:    src/main/org/apache/tools/ant/taskdefs Property.java
  Log:
  Tell the user that <property resource="..."> failed - if it fails.
  
  Revision  Changes    Path
  1.20      +4 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Property.java
  
  Index: Property.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Property.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Property.java	2000/10/13 09:14:37	1.19
  +++ Property.java	2000/11/30 09:31:41	1.20
  @@ -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 @@
               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);
           }
       }
   
  
  
  

Mime
View raw message