ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional NetRexxC.java
Date Wed, 03 Apr 2002 09:47:24 GMT
bodewig     02/04/03 01:47:24

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        NetRexxC.java
  Log:
  zap tabs, propagate exception so it gets into the log the way it should
  
  Revision  Changes    Path
  1.16      +3 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
  
  Index: NetRexxC.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- NetRexxC.java	1 Apr 2002 17:34:36 -0000	1.15
  +++ NetRexxC.java	3 Apr 2002 09:47:24 -0000	1.16
  @@ -577,7 +577,7 @@
               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 @@
                   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
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message