Package org.apache.tools.ant
Class NoBannerLogger
java.lang.Object
org.apache.tools.ant.DefaultLogger
org.apache.tools.ant.NoBannerLogger
- All Implemented Interfaces:
- EventListener,- BuildListener,- BuildLogger
- Direct Known Subclasses:
- SimpleBigProjectLogger
Extends DefaultLogger to strip out empty targets.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringName of the current target, if it should be displayed on the next message.Fields inherited from class org.apache.tools.ant.DefaultLoggeremacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringextractTargetName(BuildEvent event) Override point, extract the target namevoidmessageLogged(BuildEvent event) 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.voidtargetFinished(BuildEvent event) Resets the current target name tonull.voidtargetStarted(BuildEvent event) Notes the name of the target so it can be logged if it generates any messages.Methods inherited from class org.apache.tools.ant.DefaultLoggerbuildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getMessageOutputLevel, getTimestamp, log, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, taskFinished, taskStarted
- 
Field Details- 
targetNameName of the current target, if it should be displayed on the next message. This is set when a target starts building, and reset tonullafter the first message for the target is logged.
 
- 
- 
Constructor Details- 
NoBannerLoggerpublic NoBannerLogger()Sole constructor.
 
- 
- 
Method Details- 
targetStartedNotes the name of the target so it can be logged if it generates any messages.- Specified by:
- targetStartedin interface- BuildListener
- Overrides:
- targetStartedin class- DefaultLogger
- Parameters:
- event- A BuildEvent containing target information. Must not be- null.
- See Also:
 
- 
extractTargetNameOverride point, extract the target name- Parameters:
- event- the event to work on
- Returns:
- the target name to print
- Since:
- Ant1.7.1
 
- 
targetFinishedResets the current target name tonull.- Specified by:
- targetFinishedin interface- BuildListener
- Overrides:
- targetFinishedin class- DefaultLogger
- Parameters:
- event- Ignored in this implementation.
- See Also:
 
- 
messageLoggedLogs 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.- Specified by:
- messageLoggedin interface- BuildListener
- Overrides:
- messageLoggedin class- DefaultLogger
- Parameters:
- event- A BuildEvent containing message information. Must not be- null.
- See Also:
 
 
-