I'd do: assert false: "blah blah"
but the solution is pretty much the same what you've already tried. It'll give you stack trace no doubt if you run the build with stactraces on. Cheers! On Wed, Jun 22, 2011 at 9:08 PM, M A <[email protected]> wrote: > Hi all, > > What's the best way to fail a build? I want to fail a build from > within the taskGraph.ready { ... } method. I've tried both: > > throw new GradleException(...) > and > ant.fail( ... ) > > Both result in long ugly stacktraces. Is there a more concise way to do this? > > Cheers, > Merlyn > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Szczepan Faber Principal engineer@gradleware Lead@mockito --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
