gpt4 book ai didi

Ant : how to always execute a task at the end of every run (regardless of target)

转载 作者:行者123 更新时间:2023-12-04 20:48:42 25 4
gpt4 key购买 nike

有没有办法在 Ant 中定义一个总是在 处执行的任务?结束 每次运行?此 SO question提供了一种方法,在 开始 每次运行,在执行任何其他目标之前,但我正在研究相反的情况。

我的用例是在运行期间发现某个条件时回显一条消息警告用户,但我想确保它在最后得到回显,以便引起注意。

最佳答案

使用构建监听器,例如为每个构建结果提供任务容器的 exec-listener
( BUILD SUCCESSFUL | BUILD FAILED ) 您可以在其中放置所有需要的任务,请参阅:
https://stackoverflow.com/a/6391165/130683
详情。

关于 Ant : how to always execute a task at the end of every run (regardless of target),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13112266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com