ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Workaround for no failonerror
Date Thu, 18 Aug 2005 11:12:32 GMT
* Antcontrib <trycatch>
* Ant2 will never be written
* why you dont check for the existence of the webapp before undeploying?


>-----Urspr√ľngliche Nachricht-----
>Von: [] 
>Gesendet: Donnerstag, 18. August 2005 12:31
>Betreff: Workaround for no failonerror
>I keep needing to ignore failures for tasks which don't 
>themselves support a "failonerror" attribute.
>For example, I want to add a tomcat 'undeploy' task when doing 
>a clean build before redeploying the newly built warfile to tomcat. 
>But this fails if the the app is not already deployed, and 
>stops the clean and build halfway through. So I keep having to 
>go in and edit the build.xml to switch this task in and out manually.
>The feature inlined below is accepted for Ant2, but Is there a 
>recognised way already in use to enclose an arbitrary task in 
>some kind of wrapper which swallows (ignores) errors where 
>they don't matter, allowing the build script to continue? 
>I am using Ant 1.6.2 embedded in Eclipse.
>>From  <>
> - accepted 
>new features....
>'Provide "failonerror"-like functionality to all tasks. 
>(Provide this as an aspect?? Much like logging aspect or 
>classloader aspect).'

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message