首页 > 解决方案 > 在给定超时时跳过蚂蚁目标

问题描述

<target name="xtest" depends="xyz" description="Additional check">
    <exec executable="${xtest.exe}" resultproperty="retVal">
        <arg value="123" />
    </exec>
    <echo>Returned: ${retVal}</echo>
</target>

想要通过“[echo] 警告:跳过 xtest。”成功跳过“xtest”。仅在花费超过 1 分钟时。如果在 1 分钟内“xtest”失败,那么只有进程应该中断。

标签: javaeclipsebuildant

解决方案


推荐阅读