ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess StdioRedirector.java
Date Fri, 26 Apr 2002 02:55:03 GMT
donaldp     02/04/25 19:55:03

  Modified:    aut/src/java/org/apache/aut/jprocess StdioRedirector.java
  Log:
  Reset variables so that if you uninstall
  redirector then it will allow the old
  stream objects to be GC'ed.
  
  Revision  Changes    Path
  1.3       +5 -1      jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/StdioRedirector.java
  
  Index: StdioRedirector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/StdioRedirector.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StdioRedirector.java	26 Apr 2002 02:31:40 -0000	1.2
  +++ StdioRedirector.java	26 Apr 2002 02:55:02 -0000	1.3
  @@ -28,7 +28,7 @@
    * standard error of process.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/04/26 02:31:40 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/26 02:55:02 $
    */
   public final class StdioRedirector
   {
  @@ -100,6 +100,10 @@
   
           final PrintStream outputStream = new PrintStream( output, true );
           final PrintStream errorStream = new PrintStream( error, true );
  +
  +        c_input = null;
  +        c_output = null;
  +        c_error = null;
   
           System.setIn( input );
           System.setOut( outputStream );
  
  
  

--
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