org.apache.tools.ant.listener
public class BigProjectLogger extends NoBannerLogger implements SubBuildListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FOOTER
Footer string for the log.
|
static java.lang.String |
HEADER
Header string for the log.
|
targetName
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out
Constructor and Description |
---|
BigProjectLogger() |
Modifier and Type | Method and Description |
---|---|
void |
buildFinished(BuildEvent event)
Prints whether the build succeeded or failed,
any errors the occurred during the build, and
how long the build took.
|
void |
buildStarted(BuildEvent event)
Responds to a build being started by just remembering the current time.
|
protected java.lang.String |
extractNameOrDefault(BuildEvent event)
Get the name of an event
|
protected java.lang.String |
extractTargetName(BuildEvent event)
Override point, extract the target name
|
protected java.lang.String |
getBuildFailedMessage()
This is an override point: the message that indicates whether
a build failed.
|
protected java.lang.String |
getBuildSuccessfulMessage()
This is an override point: the message that indicates that
a build succeeded.
|
protected java.lang.String |
getFooter()
Override point: return the footer string for the entry/exit message
|
protected java.lang.String |
getHeader()
Override point: return the header string for the entry/exit message
|
void |
subBuildFinished(BuildEvent event)
Signals that the last target has finished.
|
void |
subBuildStarted(BuildEvent event)
Signals that a subbuild has started.
|
messageLogged, targetFinished, targetStarted
extractProjectName, formatTime, getTimestamp, log, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, taskFinished, taskStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
messageLogged, targetFinished, targetStarted, taskFinished, taskStarted
public static final java.lang.String HEADER
public static final java.lang.String FOOTER
protected java.lang.String getBuildFailedMessage()
getBuildFailedMessage
in class DefaultLogger
protected java.lang.String getBuildSuccessfulMessage()
getBuildSuccessfulMessage
in class DefaultLogger
public void buildStarted(BuildEvent event)
buildStarted
in interface BuildListener
buildStarted
in class DefaultLogger
event
- public void buildFinished(BuildEvent event)
buildFinished
in interface BuildListener
buildFinished
in class DefaultLogger
event
- BuildEvent.getException()
protected java.lang.String extractTargetName(BuildEvent event)
extractTargetName
in class NoBannerLogger
event
- the event to work onpublic void subBuildStarted(BuildEvent event)
subBuildStarted
in interface SubBuildListener
event
- An event with any relevant extra information. Must not be null
.protected java.lang.String extractNameOrDefault(BuildEvent event)
event
- the event namepublic void subBuildFinished(BuildEvent event)
subBuildFinished
in interface SubBuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getException()
protected java.lang.String getHeader()
protected java.lang.String getFooter()