org.apache.tools.ant
Class NoBannerLogger
- BuildListener, BuildLogger, EventListener
public class NoBannerLogger
Extends DefaultLogger to strip out empty targets.
protected String | targetName- Name of the current target, if it should
be displayed on the next message.
|
protected String | extractTargetName(BuildEvent event)- Override point, extract the target name
|
void | messageLogged(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.
|
void | targetFinished(BuildEvent event)- Resets the current target name to
null.
|
void | targetStarted(BuildEvent event)- Notes the name of the target so it can be logged
if it generates any messages.
|
buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, targetFinished, targetStarted, taskFinished, taskStarted |
targetName
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.
NoBannerLogger
public NoBannerLogger()
Sole constructor.
extractTargetName
protected String extractTargetName(BuildEvent event)
Override point, extract the target name
event - the event to work on
messageLogged
public void messageLogged(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.
- messageLogged in interface BuildListener
- messageLogged in interface DefaultLogger
event - A BuildEvent containing message information.
Must not be null.