org.apache.tools.ant.listener
Class BigProjectLogger
- BuildListener, EventListener, BuildListener, BuildLogger, SubBuildListener
public class BigProjectLogger
This is a special logger that is designed to make it easier to work
with big projects, those that use imports and
subant to build complex systems.
static String | FOOTER- Footer string for the log.
|
static String | HEADER- Header string for the log.
|
buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, targetFinished, targetStarted, taskFinished, taskStarted |
FOOTER
public static final String FOOTER
Footer string for the log.
HEADER
public static final String HEADER
Header string for the log.
extractNameOrDefault
protected String extractNameOrDefault(BuildEvent event)
Get the name of an event
- the name or a default string
extractTargetName
protected String extractTargetName(BuildEvent event)
Override point, extract the target name
- extractTargetName in interface NoBannerLogger
event - the event to work on
- the target name -including the owning project name (if non-null)
getBuildFailedMessage
protected String getBuildFailedMessage()
This is an override point: the message that indicates whether
a build failed. Subclasses can change/enhance the
message.
- getBuildFailedMessage in interface DefaultLogger
- The classic "BUILD FAILED" plus a timestamp
getBuildSuccessfulMessage
protected String getBuildSuccessfulMessage()
This is an override point: the message that indicates that
a build succeeded. Subclasses can change/enhance the
message.
- getBuildSuccessfulMessage in interface DefaultLogger
- The classic "BUILD SUCCESSFUL" plus a timestamp
getFooter
protected String getFooter()
Override point: return the footer string for the entry/exit message
getHeader
protected String getHeader()
Override point: return the header string for the entry/exit message