Continue executing ant script if one task fails

后端 未结 3 1066
一个人的身影
一个人的身影 2021-01-19 10:00

I have an Ant script which runs tests then deploys my application to a QA server. To deploy the application it first calls sun-appserv undeploy, for various rea

3条回答
  •  庸人自扰
    2021-01-19 10:19

    AntContrib try catch:

    
    
       
    
    
       
    
    
    

    The exec task has a failonerror attribute which you can set to false to keep going.

提交回复
热议问题