ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: How to continue the build if a task fails?
Date Tue, 15 Apr 2003 18:10:19 GMT

Why don't you provide separate targets for deploy/undeploy and then even 
another target which might be called "redeploy" which dependes on undeploy 
and deploy.  That way, people can call "redeploy" if they want to do both 
and then call only "deploy" or only "undeploy" when it suites their 
needs.  BTW, why use "deploy/undeploy" rather than "install/remove".  The 
latter is far more lightweight and much less "permanent" as the context is 
not persited across restarts because the server.xml isn't physically 
modified as the "deploy/undeploy" tasks do.  "install/remove" is *much* 
easier for development purposes.


At 05:26 PM 4/15/2003 +0100, you wrote:
>I'm sorry to bother you, I'm still rather a newbie to ant but I can't seem 
>to find a solution to the following problem:
>My build file uses optional tasks from tomcat 4.1 to undeploy our web app 
>and then deploy the newly built war.  However, occasionally something will 
>go wrong in the development work which means the war file can't be 
>deployed -- a new jar needs to be added or suchlike.
>After fixing the problem rebuild will try to undeploy which fails and 
>stops the whole process.  I know how to get round this by running ant from 
>a command line and giving it the deploy task as its target but not 
>everyone is happy with this.  We use JCreator for file editing and I've 
>set up a simple ant command for its compile project button which runs ant 
>with the default target and I'm having a job to get anyone to use ant in 
>any other way.  In particular, people will check out the build file, 
>comment out the body of the undeploy task and use the compile button in 
>jcreator to compile and deploy, then undo the checkout.
>A continue on failure option on the undeploy task would get round 
>this.  Can it be done?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message