ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48040] New: outproperty gets filled in with "command : output"
Date Thu, 22 Oct 2009 16:10:22 GMT

           Summary: outproperty gets filled in with "command : output"
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Optional Tasks

Let's say you have the following task snippet:

     <target name="testsshexec">
        <sshexec host="unixbox"
                 command="echo &quot;test&quot;"
         <echo message="Output from sshexec : ${outprop}"/>

When executing this with Ant 1.7.0, the outputproperty "outprop" was getting
filled in with the output of the command, the string "test" for say in this

Now with Ant 1.7.1, the same code makes the outputproperty "outprop" getting
filled in with the string "echo "test"  : test", where the sshexec task is
repeating the command given to the "command" attribute.

This is a regression as the outputproperty cannot be used directly within the
ant build file as it contains unwanted stuff rather than just the output of the

I identified that the regression happened between revisions 577765 and 581576
with the correction of "open session once for a command resource not each

Thanks for looking into it.

The correction looks very simple, one just need to remove the code at line 194
of (I'm looking at latest SVN rev. 772543).

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message