Browse Source

Catch IO Exceptions when running Jikes

Based on an observation by Matt Foemmel <mpfoemme@ThoughtWorks.com> a while ago.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267723 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 25 years ago
parent
commit
f39abb65a1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Jikes.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Jikes.java View File

@@ -1,6 +1,7 @@
package org.apache.tools.ant.taskdefs; package org.apache.tools.ant.taskdefs;


import java.io.*; import java.io.*;
import org.apache.tools.ant.*;


/** /**
* Encapsulates a Jikes compiler, by * Encapsulates a Jikes compiler, by
@@ -40,8 +41,7 @@ public class Jikes {
BufferedReader reader = new BufferedReader(new InputStreamReader(jikes.getInputStream())); BufferedReader reader = new BufferedReader(new InputStreamReader(jikes.getInputStream()));
jop.parseOutput(reader); jop.parseOutput(reader);
} catch (IOException e) { } 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);
} }
} }
} }

Loading…
Cancel
Save