Browse Source

Capture stderr in <sshexec>, PR 28349

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276315 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
cca008dd00
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      WHATSNEW
  2. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java

+ 2
- 0
WHATSNEW View File

@@ -136,6 +136,8 @@ Other changes:
* The OS/2 wrapper scripts have been adapted to use the new launcher.
Bugzilla Report 28226.

* <sshexec> now also captures stderr output. Bugzilla Report 28349.

Changes from Ant 1.6.0 to Ant 1.6.1
=============================================



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

@@ -145,6 +145,7 @@ public class SSHExec extends SSHBase {
final ChannelExec channel = (ChannelExec) session.openChannel("exec");
channel.setCommand(command);
channel.setOutputStream(tee);
channel.setExtOutputStream(tee);
channel.connect();

// wait for it to finish


Loading…
Cancel
Save