ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Execute.java
Date Tue, 27 Apr 2004 15:23:26 GMT
mbenson     2004/04/27 08:23:25

  Modified:    src/main/org/apache/tools/ant/taskdefs Execute.java
  Log:
  Close process streams in waitFor(Process).
  PR: 28565
  
  Revision  Changes    Path
  1.78      +8 -1      ant/src/main/org/apache/tools/ant/taskdefs/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Execute.java,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- Execute.java	1 Apr 2004 19:11:02 -0000	1.77
  +++ Execute.java	27 Apr 2004 15:23:25 -0000	1.78
  @@ -536,6 +536,13 @@
               setExitValue(process.exitValue());
           } catch (InterruptedException e) {
               process.destroy();
  +        } finally {
  +            try {
  +                process.getInputStream().close();
  +                process.getOutputStream().close();
  +                process.getErrorStream().close();
  +            } catch (IOException eyeOhEx) {
  +            }
           }
       }
   
  
  
  

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


Mime
View raw message