How to run Ant tasks, even if build fails

I have an Ant task that runs if the lock file does not exist.

But if the assembly failed, the lock file will not be deleted at the end of the task, and then the task will not be called from the scheduled tasks.

Do I need to contact me so that even if the assembly failed, I would have to call my cleanUp task to delete the lock files?

+3
source share
2 answers

Take a look at this: Testing and handling exceptions with Ant
There is macro definition with trycatch

+1
source

It sounds to me like something that needs to be cleaned at the beginning of any build.

init - , ? , , .

. . . if unless . . - , ant.

0

Source: https://habr.com/ru/post/1778313/


All Articles