java - 在给定超时时跳过蚂蚁目标
问题描述
<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”失败,那么只有进程应该中断。
解决方案
推荐阅读
- php - 在codeigniter中访问num_rows并返回ajax
- stripe-payments - 如何使用 Stripe 3ds 保存卡片?
- google-api - 位置数据 Google Photos API
- mysql - JOIN 两个查询结果(有 WHERE 和 IN 子句 + 子查询)
- android - 导航组件 - 如何嵌套导航图?
- django - 模态表单和 Django URL,如何工作?
- python - Tkinter 没有按预期将图像放在按钮上
- spring - 找不到 Spring 抽象存储库类
- javascript - 我不能调用变量
- c# - 功能评估已禁用,VS 2015 中查询 LinQ 执行出错?