Peter Niederwieser wrote
> 
> `dependsOn` is the correct solution. Calling `execute` on a task is not
> supported and should be avoided. What's your problem with `dependsOn`? If
> it's just the syntax, you can easily write a helper method that lets you
> write something like `chain(preRelease, validate, compile)`. Not sure what
> you are trying to accomplish with `rethrowFailure`.
> 
> Cheers,
> Peter
> 

Ok, I'm changing the script to the "dependsOn" approach. I found a topic
about how gradle sort dependencies witch seem to be under discusion yet,
that is what I was trying to do.

Still have the problem with the "restore". I couldn't find in the guide a
way to handle the exceptions. Do I have to do it inside each task ? and in
that case how do I handle the exceptions in a predefined task (as
compileJava ) ?

Thanks again for the help

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/What-is-the-best-way-to-define-the-execution-of-several-tasks-tp5501594p5504517.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