Maybe you should add a TaskExecutionListener to your build. unfurtunately the interface has no hook for all tasks are executed, but by implementing afterExecute you can add such checks.
regards, René http://www.gradle.org/0.9.2/docs/javadoc/org/gradle/api/execution/TaskExecutionGraph.html#addTaskExecutionListener(org.gradle.api.execution.TaskExecutionListener) Am Fr, 4.02.2011, 09:08, schrieb Etienne Studer: > Hi > > > What I am missing (or at least I have not been able to find) is a hook > that gets called after all tasks have been executed but before the build > is finished. > > The hook 'buildFinished' is called after the command line says 'BUILD > SUCCESSFUL'. What I would like to have is a hook right after all tasks > have been executed so I can still decide whether the build has been > successful or not (depending on the outcome beyond one task). For > example, maybe I want to make the build fail if the project took more > than 10s to execute. Or maybe I want to fail the build if more than 1000 > tests have been run. > > Feedback is appreciated. > > > Regards, Etienne > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > > http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
