蚂蚁相当于nant.onsuccess / nant.onfailure [英] Ant equivalent of nant.onsuccess / nant.onfailure

查看:126
本文介绍了蚂蚁相当于nant.onsuccess / nant.onfailure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NAnt有两个内置属性 nant.onsuccess nant.onfailure ,分别指定成功运行的任务。

NAnt has two built-in properties, nant.onsuccess and nant.onfailure, for specifying tasks to run on success and failure respectively.

Ant中有一个等价物吗?

Is there an equivalent in Ant?

推荐答案

t认为有一个ant等价物,但你可以使用 trycatch (的一部分ant-contrib)

I don't think there's an ant equivalent but you could use trycatch (part of ant-contrib)

<trycatch>
  <try>
    <!-- Your code here -->
    <!-- Success message -->
  </try>
  <catch>
    <!-- Fail message -->
  </catch>
</trycatch> 

希望这有助于

这篇关于蚂蚁相当于nant.onsuccess / nant.onfailure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆