|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.RecorderEntry
This is a class that represents a recorder. This is the listener to the build process.
Constructor Summary | |
protected |
RecorderEntry(java.lang.String name)
|
Method Summary | |
void |
buildFinished(BuildEvent event)
Fired after the last target has finished. |
void |
buildStarted(BuildEvent event)
Fired before any targets are started. |
java.lang.String |
getFilename()
|
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 |
setRecordState(java.lang.Boolean state)
Turns off or on this recorder. |
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 |
Constructor Detail |
protected RecorderEntry(java.lang.String name)
name
- The name of this recorder (used as the filename).Method Detail |
public java.lang.String getFilename()
public void setRecordState(java.lang.Boolean state)
state
- true for on, false for off, null for no change.public void buildStarted(BuildEvent event)
BuildListener
buildStarted
in interface BuildListener
public void buildFinished(BuildEvent event)
BuildListener
buildFinished
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getException()
public void targetStarted(BuildEvent event)
BuildListener
targetStarted
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getTarget()
public void targetFinished(BuildEvent event)
BuildListener
targetFinished
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getException()
public void taskStarted(BuildEvent event)
BuildListener
taskStarted
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getTask()
public void taskFinished(BuildEvent event)
BuildListener
taskFinished
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getException()
public void messageLogged(BuildEvent event)
BuildListener
messageLogged
in interface BuildListener
org.apache.tools.ant.BuildListener
BuildEvent.getMessage()
,
BuildEvent.getPriority()
public void setMessageOutputLevel(int level)
BuildLogger
Constants for the message levels are in Project.java. The order of the levels, from least to most verbose, is MSG_ERR, MSG_WARN, MSG_INFO, MSG_VERBOSE, MSG_DEBUG.
setMessageOutputLevel
in interface BuildLogger
org.apache.tools.ant.BuildLogger
level
- the logging level for the logger.public void setOutputPrintStream(java.io.PrintStream output)
BuildLogger
setOutputPrintStream
in interface BuildLogger
org.apache.tools.ant.BuildLogger
output
- the output stream for the logger.public void setEmacsMode(boolean emacsMode)
BuildLogger
setEmacsMode
in interface BuildLogger
org.apache.tools.ant.BuildLogger
emacsMode
- true if output is to be unadorned so that emacs and other
editors can parse files names, etc.public void setErrorPrintStream(java.io.PrintStream err)
BuildLogger
setErrorPrintStream
in interface BuildLogger
org.apache.tools.ant.BuildLogger
err
- the error stream for the logger.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |