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
sun-appserv undeploy
AntContrib try catch:
The exec task has a failonerror attribute which you can set to false to keep going.