Groovy Documentation

org.gradle.api.tasks.util
Class AntTaskAccess

java.lang.Object
  org.gradle.api.tasks.util.AntTaskAccess
All Implemented Interfaces:
org.apache.tools.ant.BuildListener

class AntTaskAccess
extends java.lang.Object

Provides a mechanism to get access to an Ant Task object after the task has been executed. Use ant.project.addBuildListener to add an AntTaskAccess object as a build listener.

author:
Steve Appling


Field Summary
Closure closure

 
Constructor Summary
AntTaskAccess()

Default CTOR.

AntTaskAccess(Closure closure)

CTOR for normal use.

 
Method Summary
void buildFinished(BuildEvent buildEvent)

void buildStarted(BuildEvent buildEvent)

void messageLogged(BuildEvent buildEvent)

void setClosure(Closure closure)

void targetFinished(BuildEvent buildEvent)

void targetStarted(BuildEvent buildEvent)

void taskFinished(BuildEvent buildEvent)

void taskStarted(BuildEvent buildEvent)

 
Methods inherited from class java.lang.Object
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll
 

Field Detail

closure

Closure closure


 
Constructor Detail

AntTaskAccess

public AntTaskAccess()
Default CTOR. If this version is used, you must call #setClosure(groovy.lang.Closure) before using this object.


AntTaskAccess

public AntTaskAccess(Closure closure)
CTOR for normal use. The provided closure will be called after each task has finished. The closure will be passed a single parameter, the Task object of the task that just finished executing.
param:
closure


 
Method Detail

buildFinished

public void buildFinished(BuildEvent buildEvent)


buildStarted

public void buildStarted(BuildEvent buildEvent)


messageLogged

public void messageLogged(BuildEvent buildEvent)


setClosure

public void setClosure(Closure closure)


targetFinished

public void targetFinished(BuildEvent buildEvent)


targetStarted

public void targetStarted(BuildEvent buildEvent)


taskFinished

public void taskFinished(BuildEvent buildEvent)


taskStarted

public void taskStarted(BuildEvent buildEvent)


 

Groovy Documentation