Top Description Methods
org.apache.tools.ant

public Interface BuildListener

extends EventListener
Known Direct Subinterfaces
org.apache.tools.ant.BuildLogger, org.apache.tools.ant.SubBuildListener
Known Direct Implementers
org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector
Imports
java.util.EventListener

Instances of classes that implement this interface can register to be notified when things happened during a build.
See Also
BuildEvent, Project#addBuildListener(BuildListener)

Method Summary

Modifier and TypeMethod and Description
public void
buildFinished(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals that the last target has finished.

public void
buildStarted(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals that a build has started.

public void
messageLogged(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals a message logging event.

public void
targetFinished(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals that a target has finished.

public void
targetStarted(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals that a target is starting.

public void
taskFinished(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals that a task has finished.

public void
taskStarted(BuildEvent
An event with any relevant extra information. Must not be null.
event
)

Signals that a task is starting.

Method Detail

buildFinishedback to summary
public void buildFinished(BuildEvent event)

Signals that the last target has finished. This event will still be fired if an error occurred during the build.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

See Also
BuildEvent#getException()
buildStartedback to summary
public void buildStarted(BuildEvent event)

Signals that a build has started. This event is fired before any targets have started.

This event is fired before the project instance is fully configured. In particular no properties have been set and the project may not know its name or default target, yet.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

messageLoggedback to summary
public void messageLogged(BuildEvent event)

Signals a message logging event.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

See Also
BuildEvent#getMessage(), BuildEvent#getException(), BuildEvent#getPriority()
targetFinishedback to summary
public void targetFinished(BuildEvent event)

Signals that a target has finished. This event will still be fired if an error occurred during the build.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

See Also
BuildEvent#getException()
targetStartedback to summary
public void targetStarted(BuildEvent event)

Signals that a target is starting.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

See Also
BuildEvent#getTarget()
taskFinishedback to summary
public void taskFinished(BuildEvent event)

Signals that a task has finished. This event will still be fired if an error occurred during the build.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

See Also
BuildEvent#getException()
taskStartedback to summary
public void taskStarted(BuildEvent event)

Signals that a task is starting.

Parameters
event:BuildEvent

An event with any relevant extra information. Must not be null.

See Also
BuildEvent#getTask()