Browse Source

Only store the command's output with no decoration in sshexec's outputproperty if the command attribute is used. PR 48040

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@829311 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
632c01d042
3 changed files with 10 additions and 4 deletions
  1. +5
    -0
      WHATSNEW
  2. +5
    -3
      docs/manual/OptionalTasks/sshexec.html
  3. +0
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java

+ 5
- 0
WHATSNEW View File

@@ -512,6 +512,11 @@ Fixed bugs:
resources but not filesets.
Bugzilla Report 48035.

* <sshexec>'s outputproperty was prefixed by the executed command
when the command attribute has been used, breaking backwards
compatibility to Ant 1.7.0.
Bugzilla Report 48040.

Other changes:
--------------



+ 5
- 3
docs/manual/OptionalTasks/sshexec.html View File

@@ -128,7 +128,9 @@ and won't work with versions of jsch earlier than
<tr>
<td valign="top">outputproperty</td>
<td valign="top">The name of a property in which the output of the
command should be stored.</td>
command should be stored. If you use the commandResource
attribute, each command's output will be prefixed by the
command itself.</td>
<td align="center" valign="top">No</td>
</tr>
<tr>
@@ -144,7 +146,7 @@ and won't work with versions of jsch earlier than
<td valign="top">A file from which the executed command's standard
input is taken. This attribute is mutually exclusive with the
inputstring attribute.<br/>
When executing more than one command via commandRessource, input
When executing more than one command via commandResource, input
will be read for each command.
<em>since Ant 1.8.0</em></td>
<td align="center" valign="top">No</td>
@@ -154,7 +156,7 @@ and won't work with versions of jsch earlier than
<td valign="top">A string which serves as the input stream for the
executed command. This attribute is mutually exclusive with the
input attribute.<br/>
When executing more than one command via commandRessource, input
When executing more than one command via commandResource, input
will be read for each command.
<em>since Ant 1.8.0</em></td>
<td align="center" valign="top">No</td>


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

@@ -191,7 +191,6 @@ public class SSHExec extends SSHBase {
/* called once */
if (command != null) {
log("cmd : " + command, Project.MSG_INFO);
output.append(command).append(" : ");
executeCommand(session, command, output);
} else { // read command resource and execute for each command
try {


Loading…
Cancel
Save