与sshexec的Ant问题

时间:2013-11-20 10:21:39

标签: xml ant build.xml

我有一些蚂蚁脚本,这是麻烦,当我运行我的脚本的这一部分时:

<sshexec host="${deploy.system.hostname}" port="**" trust="true"
                username="*********"
                password="**********"
        commandResource="CommandsDeploy.txt"/>

我收到了这条cmd消息:

[sshexec] cmd : C:
[sshexec] cmd : DIR
[sshexec]
[sshexec]  Directory of U:\
[sshexec]
[sshexec] 11/13/2013  01:25 PM    <DIR>          .
[sshexec] 11/13/2013  01:25 PM    <DIR>          ..
[sshexec] 11/19/2013  05:46 PM    <DIR>          WINDOWS

我的CommandsDeploy.txt看起来像这样:

c:
DIR

通过ssh连接在Windows Server 2008R2上执行脚本,如果我在控制台中通过手动执行此命令,则它们可以正常工作。我该怎么办?

0 个答案:

没有答案