I could probably find out from the task graph which task gets executed last and 
then add myself as a task execution listener to that task - problematic if the 
task gets never called in case the build fails earlier on...

I've created a feature request:
http://jira.codehaus.org/browse/GRADLE-1369

Regards, Etienne


On 04.02.2011, at 12:33, Rene Groeschke wrote:

> 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
> 
> 

Etienne Studer
Senior Software Developer

Canoo Engineering AG
Kirschgartenstrasse 5
CH-4051 Basel

T +41 61 228 94 44
F +41 61 228 94 49

[email protected]
www.canoo.com



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

    http://xircles.codehaus.org/manage_email


Reply via email to