sshexec outputproperty在Ant中没有按预期工作。
Ant版本:1.9.4
命令:
<sshexec host="${Server}"
username="${User}"
Password="${Password}"
trust="true"
command="${cmd}"
failonerror="true"
outputproperty="sshexecOutput" />
<echo message="Value of outputproperty ${sshexecOutput}" />`
日志:
[sshexec] Connecting to <Server_Name>:22
[sshexec] cmd : <SSHEXEC_COMMAND>
[sshexec] 1
[echo] value of outputproperty 0
你能帮忙吗?