Hi
Is there a way to pass inputs to a called target from a calling target ?
suppose
<ac:for list="${a_hostname}, ${b_hostname}" param="host">
<ac:antcallback target="_sshexec" return="out1, out2"> (how do I pass a
hostname to this target, while insisting on using for loop)
</ac:antcallback>
<echo message="inside @{host} returned out1=${out1} out2=${out2}"/>
</ac:for>
<target name="_sshexec">
<sshexec host="@{host}" (likes
host to get the hostname from calling target)
username="${a_username}"
password="${a_password}"
outputproperty="out1"
command="`ls -t ${to.imdm521.build.directory} | head
-1` | awk '{print $1}' "
trust="true"/>
<sshexec host="@{host}" (likes
2nd host to get the hostname from calling target)
username="${a_username}"
password="${a_password}"
outputproperty="out2"
command="`ls -t ${to.imdm521.build.directory} | head
-1` | awk '{print $1}' "
trust="true"/>
</target>
Thanks in advance