Andrew Schetinin wrote:
> 
> Is there a nicer API for stopping the build? A kind of assert? Or only
> throwing an exception?
> 

You can use a Groovy assert statement, which will also throw an exception
and therefore stop the build.

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Problem-with-a-task-up-to-date-status-a-task-runs-only-first-time-tp4346952p4351749.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