Top Description Methods
org.apache.tools.ant

public Interface SubBuildListener

extends BuildListener
Known Direct Implementers
org.apache.tools.ant.listener.BigProjectLogger, org.apache.tools.ant.taskdefs.Recorder, org.apache.tools.ant.taskdefs.RecorderEntry, org.apache.tools.ant.AntClassLoader

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

A subbuild is a separate project instance created by the <ant> task family. These project instances will never fire the buildStarted and buildFinished events, but they will fire subBuildStarted/ and subBuildFinished. The main project instance - the one created by running Ant in the first place - will never invoke one of the methods of this interface.

Since
Ant 1.6.2
See Also
BuildEvent, Project#addBuildListener(BuildListener)

Method Summary

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

Signals that the last target has finished.

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

Signals that a subbuild has started.

Inherited from org.apache.tools.ant.BuildListener:
buildFinishedbuildStartedmessageLoggedtargetFinishedtargetStartedtaskFinishedtaskStarted

Method Detail

subBuildFinishedback to summary
public void subBuildFinished(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()
subBuildStartedback to summary
public void subBuildStarted(BuildEvent event)

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

Parameters
event:BuildEvent

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