Browse Source

Wrap System.out in a KeepAliveOutputStream

PR: 36302


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278545 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
4391d76fe1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java

+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java View File

@@ -20,6 +20,7 @@ package org.apache.tools.ant.taskdefs.optional.ssh;
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 @@ public class SSHExec extends SSHBase {
}

ByteArrayOutputStream out = new ByteArrayOutputStream();
TeeOutputStream tee = new TeeOutputStream(out, System.out);
TeeOutputStream tee = new TeeOutputStream(out, new KeepAliveOutputStream(System.out));

Session session = null;
try {


Loading…
Cancel
Save