subant failonerror subtleties

前端 未结 2 1265
梦毁少年i
梦毁少年i 2021-01-19 07:57

I have ant code that kicks off a release build in all subdirectories:


    

        
2条回答
  •  -上瘾入骨i
    2021-01-19 08:19

    Antelope Ant extensions have a try-catch command which can be used to to what you need:

    
    ....
    
       
       
       
       
          
       
    
    
    

    break=false let's continue the next command after failing. But failed targets set the haderrors property which is checked in the end. I used it a lot for build jobs (and it works fine) but I am not sure it works for inside . Maybe you have to list all calls explicitly.

提交回复
热议问题