Browse Source

zap tabs, propagate exception so it gets into the log the way it should

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272177 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
66bf648316
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java

+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java View File

@@ -577,7 +577,7 @@ public class NetRexxC extends MatchingTask {
BufferedReader in=new BufferedReader(new StringReader(out.toString()));
log("replacing destdir '"+ddir+"' through sourcedir '"+sdir+"'", Project.MSG_VERBOSE);
while ((l=in.readLine())!=null) {
lb=new StringBuffer(l);
lb=new StringBuffer(l);
int idx;
while ((idx=l.indexOf(ddir))!=-1) { // path is mentioned in the message
lb.replace(idx,idx+dlen,sdir);
@@ -595,8 +595,8 @@ public class NetRexxC extends MatchingTask {
throw new BuildException("Compile failed, messages should have been provided.");
}
} catch (IOException ioe) {
ioe.printStackTrace(); // we would like to know WHY this happened. Should never!
throw new BuildException("Unexpected IOException while playing with Strings: "+ioe.toString());
throw new BuildException("Unexpected IOException while playing with Strings",
ioe);
} finally {
// need to reset java.class.path property
// since the NetRexx compiler has no option for the classpath


Loading…
Cancel
Save