gsaqui wrote:
> 
> Is there a way to have a task call another task if it fails or even call
> another task no matter what the outcome is?
> 

If you throw an org.gradle.api.tasks.StopActionException, Gradle will carry
on with the next task action. If you throw a StopExecutionException, Gradle
will carry on with the next task.

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Blog: http://pniederw.wordpress.com
Twitter: @pniederw




--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Clean-up-after-failed-task-tp4482309p4482651.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to