|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.tools.ant.DefaultLogger
Writes build event to a PrintStream. Currently, it only writes which targets are being executed, and any messages that get logged.
| Field Summary | |
protected boolean |
emacsMode
|
protected java.io.PrintStream |
err
|
protected static java.lang.String |
lSep
|
protected int |
msgOutputLevel
|
protected java.io.PrintStream |
out
|
| Constructor Summary | |
DefaultLogger()
|
|
| Method Summary | |
void |
buildFinished(BuildEvent event)
Prints whether the build succeeded or failed, and any errors the occured during the build. |
void |
buildStarted(BuildEvent event)
Fired before any targets are started. |
protected static java.lang.String |
formatTime(long millis)
|
void |
messageLogged(BuildEvent event)
Fired whenever a message is logged. |
void |
setEmacsMode(boolean emacsMode)
Set this logger to produce emacs (and other editor) friendly output. |
void |
setErrorPrintStream(java.io.PrintStream err)
Set the output stream to which this logger is to send error messages. |
void |
setMessageOutputLevel(int level)
Set the msgOutputLevel this logger is to respond to. |
void |
setOutputPrintStream(java.io.PrintStream output)
Set the output stream to which this logger is to send its output. |
void |
targetFinished(BuildEvent event)
Fired when a target has finished. |
void |
targetStarted(BuildEvent event)
Fired when a target is started. |
void |
taskFinished(BuildEvent event)
Fired when a task has finished. |
void |
taskStarted(BuildEvent event)
Fired when a task is started. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.PrintStream out
protected java.io.PrintStream err
protected int msgOutputLevel
protected static java.lang.String lSep
protected boolean emacsMode
| Constructor Detail |
public DefaultLogger()
| Method Detail |
public void setMessageOutputLevel(int level)
setMessageOutputLevel in interface BuildLoggerlevel - the logging level for the logger.public void setOutputPrintStream(java.io.PrintStream output)
setOutputPrintStream in interface BuildLoggeroutput - the output stream for the logger.public void setErrorPrintStream(java.io.PrintStream err)
setErrorPrintStream in interface BuildLoggererr - the error stream for the logger.public void setEmacsMode(boolean emacsMode)
setEmacsMode in interface BuildLoggeremacsMode - true if output is to be unadorned so that emacs and other
editors can parse files names, etc.public void buildStarted(BuildEvent event)
BuildListenerbuildStarted in interface BuildListenerpublic void buildFinished(BuildEvent event)
buildFinished in interface BuildListenerorg.apache.tools.ant.BuildListenerBuildEvent.getException()public void targetStarted(BuildEvent event)
BuildListenertargetStarted in interface BuildListenerorg.apache.tools.ant.BuildListenerBuildEvent.getTarget()public void targetFinished(BuildEvent event)
BuildListenertargetFinished in interface BuildListenerorg.apache.tools.ant.BuildListenerBuildEvent.getException()public void taskStarted(BuildEvent event)
BuildListenertaskStarted in interface BuildListenerorg.apache.tools.ant.BuildListenerBuildEvent.getTask()public void taskFinished(BuildEvent event)
BuildListenertaskFinished in interface BuildListenerorg.apache.tools.ant.BuildListenerBuildEvent.getException()public void messageLogged(BuildEvent event)
BuildListenermessageLogged in interface BuildListenerorg.apache.tools.ant.BuildListenerBuildEvent.getMessage(),
BuildEvent.getPriority()protected static java.lang.String formatTime(long millis)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||