FileDocCategorySizeDatePackage
BuildListener.javaAPI DocApache Ant 1.703343Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant

BuildListener

public interface BuildListener implements EventListener
Instances of classes that implement this interface can register to be notified when things happened during a build.
see
BuildEvent
see
Project#addBuildListener(BuildListener)

Fields Summary
Constructors Summary
Methods Summary
public voidbuildFinished(BuildEvent event)
Signals that the last target has finished. This event will still be fired if an error occurred during the build.

param
event An event with any relevant extra information. Must not be null.
see
BuildEvent#getException()

public voidbuildStarted(BuildEvent event)
Signals that a build has started. This event is fired before any targets have started.

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

public voidmessageLogged(BuildEvent event)
Signals a message logging event.

param
event An event with any relevant extra information. Must not be null.
see
BuildEvent#getMessage()
see
BuildEvent#getException()
see
BuildEvent#getPriority()

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

param
event An event with any relevant extra information. Must not be null.
see
BuildEvent#getException()

public voidtargetStarted(BuildEvent event)
Signals that a target is starting.

param
event An event with any relevant extra information. Must not be null.
see
BuildEvent#getTarget()

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

param
event An event with any relevant extra information. Must not be null.
see
BuildEvent#getException()

public voidtaskStarted(BuildEvent event)
Signals that a task is starting.

param
event An event with any relevant extra information. Must not be null.
see
BuildEvent#getTask()