ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Jikes.java
Date Sun, 02 Jul 2000 16:18:56 GMT
conor       00/07/02 09:18:56

  Modified:    src/main/org/apache/tools/ant/taskdefs Jikes.java
  Log:
  Catch IO Exceptions when running Jikes
  Based on an observation by Matt Foemmel <mpfoemme@ThoughtWorks.com> a while ago.
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Jikes.java
  
  Index: Jikes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Jikes.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Jikes.java	2000/02/09 20:51:48	1.2
  +++ Jikes.java	2000/07/02 16:18:55	1.3
  @@ -1,6 +1,7 @@
   package org.apache.tools.ant.taskdefs;
   
   import java.io.*;
  +import org.apache.tools.ant.*;
   
   /**
    * Encapsulates a Jikes compiler, by
  @@ -40,8 +41,7 @@
               BufferedReader reader = new BufferedReader(new InputStreamReader(jikes.getInputStream()));
               jop.parseOutput(reader);
           } catch (IOException e) {
  -            // Where could we log this to? We don't have an instance
  -            // of project. Perhaps we should add one to our constructor?
  +            throw new BuildException("Error running Jikes compiler", e);              
 
           }
       }
   }
  
  
  

Mime
View raw message