| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.DefaultLogger
org.apache.tools.ant.NoBannerLogger
org.apache.tools.ant.listener.SimpleBigProjectLogger
org.apache.tools.ant.listener.BigProjectLogger
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.
| Field Summary | |
|---|---|
| static java.lang.String | FOOTERFooter string for the log. | 
| static java.lang.String | HEADERHeader string for the log. | 
| Fields inherited from class org.apache.tools.ant.NoBannerLogger | 
|---|
| targetName | 
| Fields inherited from class org.apache.tools.ant.DefaultLogger | 
|---|
| emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out | 
| Constructor Summary | |
|---|---|
| BigProjectLogger() | |
| Method Summary | |
|---|---|
|  void | buildFinished(BuildEvent event)Prints whether the build succeeded or failed, any errors the occurred during the build, and how long the build took. | 
| protected  java.lang.String | extractNameOrDefault(BuildEvent event)Get the name of an event | 
| 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 | 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 | subBuildFinished(BuildEvent event)Signals that the last target has finished. | 
|  void | subBuildStarted(BuildEvent event)Signals that a subbuild has started. | 
|  void | targetStarted(BuildEvent event)Notes the name of the target so it can be logged if it generates any messages. | 
|  void | taskStarted(BuildEvent event)No-op implementation. | 
| Methods inherited from class org.apache.tools.ant.listener.SimpleBigProjectLogger | 
|---|
| extractTargetName | 
| Methods inherited from class org.apache.tools.ant.NoBannerLogger | 
|---|
| targetFinished | 
| Methods inherited from class org.apache.tools.ant.DefaultLogger | 
|---|
| buildStarted, extractProjectName, formatTime, getTimestamp, log, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, taskFinished | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.apache.tools.ant.BuildListener | 
|---|
| buildStarted, targetFinished, taskFinished | 
| Field Detail | 
|---|
public static final java.lang.String HEADER
public static final java.lang.String FOOTER
| Constructor Detail | 
|---|
public BigProjectLogger()
| Method Detail | 
|---|
protected java.lang.String getBuildFailedMessage()
getBuildFailedMessage in class DefaultLoggerprotected java.lang.String getBuildSuccessfulMessage()
getBuildSuccessfulMessage in class DefaultLoggerpublic void targetStarted(BuildEvent event)
targetStarted in interface BuildListenertargetStarted in class NoBannerLoggerevent - BuildEvent.getTarget()public void taskStarted(BuildEvent event)
taskStarted in interface BuildListenertaskStarted in class DefaultLoggerevent - BuildEvent.getTask()public void buildFinished(BuildEvent event)
buildFinished in interface BuildListenerbuildFinished in class DefaultLoggerevent - BuildEvent.getException()public void messageLogged(BuildEvent event)
messageLogged in interface BuildListenermessageLogged in class NoBannerLoggerevent - BuildEvent.getMessage(), 
BuildEvent.getException(), 
BuildEvent.getPriority()public void subBuildStarted(BuildEvent event)
subBuildStarted in interface SubBuildListenerevent - An event with any relevant extra information. Must not be null.protected java.lang.String extractNameOrDefault(BuildEvent event)
event - the event name
public void subBuildFinished(BuildEvent event)
subBuildFinished in interface SubBuildListenerevent - An event with any relevant extra information.
              Must not be null.BuildEvent.getException()protected java.lang.String getHeader()
protected java.lang.String getFooter()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||