org.apache.tools.ant

Interface BuildListener

public interface BuildListener extends EventListener

Instances of classes that implement this interface can register to be notified when things happened during a build.

See Also: BuildEvent

Method Summary
voidbuildFinished(BuildEvent event)
Signals that the last target has finished.
voidbuildStarted(BuildEvent event)
Signals that a build has started.
voidmessageLogged(BuildEvent event)
Signals a message logging event.
voidtargetFinished(BuildEvent event)
Signals that a target has finished.
voidtargetStarted(BuildEvent event)
Signals that a target is starting.
voidtaskFinished(BuildEvent event)
Signals that a task has finished.
voidtaskStarted(BuildEvent event)
Signals that a task is starting.

Method Detail

buildFinished

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 An event with any relevant extra information. Must not be null.

See Also: getException

buildStarted

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

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

messageLogged

public void messageLogged(BuildEvent event)
Signals a message logging event.

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

See Also: getMessage getPriority

targetFinished

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 An event with any relevant extra information. Must not be null.

See Also: getException

targetStarted

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

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

See Also: getTarget

taskFinished

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 An event with any relevant extra information. Must not be null.

See Also: getException

taskStarted

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

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

See Also: getTask

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.