ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javac.java
Date Thu, 19 Oct 2000 15:25:48 GMT
bodewig     00/10/19 08:25:44

  Modified:    src/main/org/apache/tools/ant/taskdefs Javac.java
  Log:
  Better redirect stderr and stdout instead of stderr twice.
  
  Revision  Changes    Path
  1.53      +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
  
  Index: Javac.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- Javac.java	2000/10/19 14:52:58	1.52
  +++ Javac.java	2000/10/19 15:25:10	1.53
  @@ -515,8 +515,8 @@
           try {
               PrintStream logstr = 
                   new PrintStream(new LogOutputStream(this, Project.MSG_WARN));
  +            System.setOut(logstr);
               System.setErr(logstr);
  -            System.setErr(logstr);
               Class c = Class.forName ("com.sun.tools.javac.Main");
               Object compiler = c.newInstance ();
               Method compile = c.getMethod ("compile",
  @@ -533,7 +533,7 @@
                   throw new BuildException("Error starting modern compiler", ex, location);
               }
           } finally {
  -            System.setErr(err);
  +            System.setOut(err);
               System.setErr(out);
           }
       }
  
  
  

Mime
View raw message