You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@locus.apache.org on 2000/07/02 18:18:56 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Jikes.java

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 <mp...@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);                
           }
       }
   }