【问题标题】:Is it possible to get the exit code of ant scp task?是否可以获得ant scp任务的退出代码?
【发布时间】:2012-02-19 18:35:01
【问题描述】:

我在循环中使用 ant scp 任务并且我已经关闭了 failonerror。但我需要跟踪失败的迭代。 exec有没有类似resultproperty的东西?我可以在 unix 上使用 exec 而不是 scp,但我需要在 windows 上使用。

任何帮助将不胜感激......

提前谢谢..

【问题讨论】:

    标签: ant scp


    【解决方案1】:

    您可以输入recorder task around scp invocations 并稍后评估日志文件。

    示例来自文档:

    <whatever >
        <record name="log.txt" action="start"/>
        <scp ...
        <record name="log.txt" action="stop"/>
    <whatever />
    

    【讨论】:

      猜你喜欢
      • 2011-02-19
      • 1970-01-01
      • 2011-09-15
      • 2023-03-09
      • 2014-10-19
      • 2011-11-21
      • 2011-02-03
      • 2012-10-16
      • 1970-01-01
      相关资源
      最近更新 更多