ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51845] New: <record/> task cannot save the sshexec's output when in parallelrun
Date Mon, 19 Sep 2011 09:42:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51845

             Bug #: 51845
           Summary: <record/> task cannot save the sshexec's output when
                    in parallelrun
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: boy4u.zh@gmail.com
    Classification: Unclassified


Task :
~~~~~~~~~~~~~~~~~~~~
> cat test.xml


*********************************************
<target name="test2">
    <foreach param="param" list="thread1,thread2" target="output2"
        parallel="true" trim="true" inheritall="true"/>
</target>
<target name="output2">
    <record name="log_${param}.log"/>
    <echo>param is: ${param} </echo>
    <sleep seconds="2"/>
    <sshexec host="xxxx"
        username="xxx"
        password="xxx"
        command="ls -ltr" />
</target>
*********************************************


Execution Result:
~~~~~~~~~~~~~~~~~~~~
> ant -f test.xml test2

*********************************************
test2:

output2:

output2:
     [echo] param is: thread2
     [echo] param is: thread1
  [sshexec] Connecting to xxxx:22
  [sshexec] Connecting to xxxx:22
  [sshexec] cmd : ls -ltr
  [sshexec] cmd : ls -ltr
  [foreach] total 104
  [foreach] drwxr-xr-x  3 cs2rel CSDev  4096 Jun 15 08:55 tools
  [foreach] drwx------  2 cs2rel CSDev  4096 Jun 23 09:10 Mail
.......
.......

*********************************************

Error
~~~~~~~~~~~~~~~~~~~~
However, the record's output file didn't contains any output of sshexec's :

> cat log_thread1.log
*********************************************
     [echo] param is: thread1 
  [sshexec] Connecting to zhadepl01:22
  [sshexec] cmd : ls -ltr
*********************************************

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message