org.apache.tools.ant.listener

Class BigProjectLogger

public class BigProjectLogger extends SimpleBigProjectLogger implements SubBuildListener

This is a special logger that is designed to make it easier to work with big projects, those that use imports and subant to build complex systems.

Since: Ant1.7.1

Field Summary
static StringFOOTER
Footer string for the log.
static StringHEADER
Header string for the log.
Method Summary
voidbuildFinished(BuildEvent event)
{@inheritDoc }
protected StringextractNameOrDefault(BuildEvent event)
Get the name of an event
protected StringgetBuildFailedMessage()
This is an override point: the message that indicates whether a build failed.
protected StringgetBuildSuccessfulMessage()
This is an override point: the message that indicates that a build succeeded.
protected StringgetFooter()
Override point: return the footer string for the entry/exit message
protected StringgetHeader()
Override point: return the header string for the entry/exit message
voidmessageLogged(BuildEvent event)
{@inheritDoc }
voidsubBuildFinished(BuildEvent event)
voidsubBuildStarted(BuildEvent event)
{@inheritDoc }
voidtargetStarted(BuildEvent event)
{@inheritDoc }
voidtaskStarted(BuildEvent event)
{@inheritDoc }

Field Detail

FOOTER

public static final String FOOTER
Footer string for the log. {@value }

HEADER

public static final String HEADER
Header string for the log. {@value }

Method Detail

buildFinished

public void buildFinished(BuildEvent event)
{@inheritDoc }

Parameters: event

extractNameOrDefault

protected String extractNameOrDefault(BuildEvent event)
Get the name of an event

Parameters: event the event name

Returns: the name or a default string

getBuildFailedMessage

protected String getBuildFailedMessage()
This is an override point: the message that indicates whether a build failed. Subclasses can change/enhance the message.

Returns: The classic "BUILD FAILED" plus a timestamp

getBuildSuccessfulMessage

protected String getBuildSuccessfulMessage()
This is an override point: the message that indicates that a build succeeded. Subclasses can change/enhance the message.

Returns: The classic "BUILD SUCCESSFUL" plus a timestamp

getFooter

protected String getFooter()
Override point: return the footer string for the entry/exit message

Returns: the footer string

getHeader

protected String getHeader()
Override point: return the header string for the entry/exit message

Returns: the header string

messageLogged

public void messageLogged(BuildEvent event)
{@inheritDoc }

Parameters: event

subBuildFinished

public void subBuildFinished(BuildEvent event)
{@inheritDoc }

subBuildStarted

public void subBuildStarted(BuildEvent event)
{@inheritDoc }

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

targetStarted

public void targetStarted(BuildEvent event)
{@inheritDoc }

Parameters: event

taskStarted

public void taskStarted(BuildEvent event)
{@inheritDoc }

Parameters: event