Ali, Haneef wrote:
Hi,

I have just copied the script from cookbook for executing "Cobertura" report.   
 test.doLast {} is not getting executed if one of the test fails. Is there a way to make 
the task call test.doLast  irrespective of  the test results

There isn't. Could you add a JIRA issue for this?

As a workaround, you could do something like this instead of using doLast { }

gradle.taskGraph.afterTask { task ->
  if (task == test) {
      ... do whatever would be done in doLast { } ...
  }
}


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to