|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.DefaultLogger | +--org.apache.tools.ant.NoBannerLogger
Extends DefaultLogger to strip out empty targets.
Field Summary | |
protected java.lang.String |
targetName
Name of the current target, if it should be displayed on the next message. |
Fields inherited from class org.apache.tools.ant.DefaultLogger |
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out |
Constructor Summary | |
NoBannerLogger()
Sole constructor. |
Method Summary | |
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. |
Methods inherited from class org.apache.tools.ant.DefaultLogger |
buildFinished, buildStarted, formatTime, log, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, taskFinished, taskStarted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String targetName
null
after the first message for
the target is logged.
Constructor Detail |
public NoBannerLogger()
Method Detail |
public void targetStarted(BuildEvent event)
targetStarted
in interface BuildListener
targetStarted
in class DefaultLogger
event
- A BuildEvent containing target information.
Must not be null
.public void targetFinished(BuildEvent event)
null
.
targetFinished
in interface BuildListener
targetFinished
in class DefaultLogger
event
- Ignored in this implementation.public void messageLogged(BuildEvent event)
messageLogged
in interface BuildListener
messageLogged
in class DefaultLogger
event
- A BuildEvent containing message information.
Must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |