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/optional/ssh SSHExec.java
Date Wed, 31 Aug 2005 19:39:14 GMT
mbenson     2005/08/31 12:39:14

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ssh
                        SSHExec.java
  Log:
  Wrap System.out in a KeepAliveOutputStream
  PR: 36302
  
  Revision  Changes    Path
  1.22      +2 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
  
  Index: SSHExec.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- SSHExec.java	12 Jun 2005 18:04:16 -0000	1.21
  +++ SSHExec.java	31 Aug 2005 19:39:14 -0000	1.22
  @@ -20,6 +20,7 @@
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.util.TeeOutputStream;
  +import org.apache.tools.ant.util.KeepAliveOutputStream;
   
   import java.io.ByteArrayOutputStream;
   import java.io.File;
  @@ -131,7 +132,7 @@
           }
   
           ByteArrayOutputStream out = new ByteArrayOutputStream();
  -        TeeOutputStream tee = new TeeOutputStream(out, System.out);
  +        TeeOutputStream tee = new TeeOutputStream(out, new KeepAliveOutputStream(System.out));
   
           Session session = null;
           try {
  
  
  

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


Mime
View raw message