Conditional Task on exec failure in Ant

前端 未结 2 596
温柔的废话
温柔的废话 2020-12-06 15:16

I have some unit tests running through Ant, and I\'d like to be able to run some cleanup code if the unit tests fail. I was looking for some sort of \"finally\" block, but I

2条回答
  •  隐瞒了意图╮
    2020-12-06 15:56

    Ant contrib has the concept of a try-catch-finally. However this is a finally for a particular block, not for the entire script.

提交回复
热议问题