Top Description Fields Constructors Methods
org.apache.tools.ant

public Class NoBannerLogger

extends DefaultLogger
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.listener.SimpleBigProjectLogger

Extends DefaultLogger to strip out empty targets.

Field Summary

Modifier and TypeField and Description
protected String
targetName

Name of the current target, if it should be displayed on the next message.

Inherited from org.apache.tools.ant.DefaultLogger:
emacsModeerrLEFT_COLUMN_SIZElSepmsgOutputLevelout

Constructor Summary

AccessConstructor and Description
public
NoBannerLogger()

Sole constructor.

Method Summary

Modifier and TypeMethod and Description
protected String

Returns:

the target name to print
extractTargetName
(BuildEvent
the event to work on
event
)

Override point, extract the target name

public void
messageLogged(BuildEvent
A BuildEvent containing message information. Must not be null.
event
)

Overrides org.apache.tools.ant.DefaultLogger.messageLogged.

Implements org.apache.tools.ant.BuildListener.messageLogged.

Logs a message for a target if it is of an appropriate priority, also logging the name of the target if this is the first message which needs to be logged for the target.
public synchronized void
targetFinished(BuildEvent
Ignored in this implementation.
event
)

Overrides org.apache.tools.ant.DefaultLogger.targetFinished.

Implements org.apache.tools.ant.BuildListener.targetFinished.

Resets the current target name to null.
public synchronized void
targetStarted(BuildEvent
A BuildEvent containing target information. Must not be null.
event
)

Overrides org.apache.tools.ant.DefaultLogger.targetStarted.

Implements org.apache.tools.ant.BuildListener.targetStarted.

Notes the name of the target so it can be logged if it generates any messages.
Inherited from org.apache.tools.ant.DefaultLogger:
buildFinishedbuildStartedextractProjectNameformatTimegetBuildFailedMessagegetBuildSuccessfulMessagegetMessageOutputLevelgetTimestamplogprintMessagesetEmacsModesetErrorPrintStreamsetMessageOutputLevelsetOutputPrintStreamtaskFinishedtaskStartedthrowableMessage

Field Detail

targetNameback to summary
protected String targetName

Name of the current target, if it should be displayed on the next message. This is set when a target starts building, and reset to null after the first message for the target is logged.

Constructor Detail

NoBannerLoggerback to summary
public NoBannerLogger()

Sole constructor.

Method Detail

extractTargetNameback to summary
protected String extractTargetName(BuildEvent event)

Override point, extract the target name

Parameters
event:BuildEvent

the event to work on

Returns:String

the target name to print

Since
Ant1.7.1
messageLoggedback to summary
public void messageLogged(BuildEvent event)

Overrides org.apache.tools.ant.DefaultLogger.messageLogged.

Implements org.apache.tools.ant.BuildListener.messageLogged.

Logs a message for a target if it is of an appropriate priority, also logging the name of the target if this is the first message which needs to be logged for the target.

Parameters
event:BuildEvent

A BuildEvent containing message information. Must not be null.

targetFinishedback to summary
public synchronized void targetFinished(BuildEvent event)

Overrides org.apache.tools.ant.DefaultLogger.targetFinished.

Implements org.apache.tools.ant.BuildListener.targetFinished.

Resets the current target name to null.

Parameters
event:BuildEvent

Ignored in this implementation.

targetStartedback to summary
public synchronized void targetStarted(BuildEvent event)

Overrides org.apache.tools.ant.DefaultLogger.targetStarted.

Implements org.apache.tools.ant.BuildListener.targetStarted.

Notes the name of the target so it can be logged if it generates any messages.

Parameters
event:BuildEvent

A BuildEvent containing target information. Must not be null.