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 Project.java
Date Tue, 05 Sep 2000 07:11:21 GMT
bodewig     00/09/05 00:11:20

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  Correctly handle the case where one of the defaults.properties files
  cannot be found.
  Submitted by:	Nico Seessle <nico@seessle.de>
  
  Revision  Changes    Path
  1.36      +6 -0      jakarta-ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- Project.java	2000/09/04 12:20:10	1.35
  +++ Project.java	2000/09/05 07:11:18	1.36
  @@ -145,6 +145,9 @@
           try {
               Properties props = new Properties();
               InputStream in = this.getClass().getResourceAsStream(defs);
  +            if (in == null) { 
  +                throw new BuildException("Can't load default task list");
  +            }
               props.load(in);
               in.close();
   
  @@ -170,6 +173,9 @@
           try{
               Properties props = new Properties();
               InputStream in = this.getClass().getResourceAsStream(dataDefs);
  +            if (in == null) { 
  +                throw new BuildException("Can't load default datatype list");
  +            }
               props.load(in);
               in.close();
   
  
  
  

Mime
View raw message