From 965917ea136e553faaca230cc2ba13d0db78a842 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 6 Jan 2014 15:54:40 +0000 Subject: [PATCH] seems to be wrapping the wrong stream git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1555873 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java index 5d41523aa..8228c9f86 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java @@ -355,7 +355,7 @@ public class SSHExec extends SSHBase { throws BuildException { ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream errout = new ByteArrayOutputStream(); - OutputStream teeErr = suppressSystemErr ? errout : new TeeOutputStream(out, KeepAliveOutputStream.wrapSystemErr()); + OutputStream teeErr = suppressSystemErr ? errout : new TeeOutputStream(errout, KeepAliveOutputStream.wrapSystemErr()); OutputStream tee = suppressSystemOut ? out : new TeeOutputStream(out, KeepAliveOutputStream.wrapSystemOut()); InputStream istream = null ;