java.util.EventListener, BuildListener, BuildLogger, SubBuildListenerpublic class RecorderEntry extends java.lang.Object implements BuildLogger, SubBuildListener
| Modifier | Constructor | Description |
|---|---|---|
protected |
RecorderEntry(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
buildFinished(BuildEvent event) |
Signals that the last target has finished.
|
void |
buildStarted(BuildEvent event) |
Signals that a build has started.
|
void |
cleanup() |
|
java.lang.String |
getFilename() |
|
Project |
getProject() |
Get the project associated with this recorder entry.
|
void |
messageLogged(BuildEvent event) |
Signals a message logging event.
|
void |
setEmacsMode(boolean emacsMode) |
Sets this logger to produce emacs (and other editor) friendly output.
|
void |
setErrorPrintStream(java.io.PrintStream err) |
Sets the output stream to which this logger is to send error messages.
|
void |
setMessageOutputLevel(int level) |
Sets the highest level of message this logger should respond to.
|
void |
setOutputPrintStream(java.io.PrintStream output) |
Sets the output stream to which this logger is to send its output.
|
void |
setProject(Project project) |
Set the project associated with this recorder entry.
|
void |
setRecordState(java.lang.Boolean state) |
Turns off or on this recorder.
|
void |
subBuildFinished(BuildEvent event) |
Cleans up any resources held by this recorder entry at the end
of a subbuild if it has been created for the subbuild's project
instance.
|
void |
subBuildStarted(BuildEvent event) |
Empty implementation to satisfy the BuildListener interface.
|
void |
targetFinished(BuildEvent event) |
Signals that a target has finished.
|
void |
targetStarted(BuildEvent event) |
Signals that a target is starting.
|
void |
taskFinished(BuildEvent event) |
Signals that a task has finished.
|
void |
taskStarted(BuildEvent event) |
Signals that a task is starting.
|
protected RecorderEntry(java.lang.String name)
name - The name of this recorder (used as the filename).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)
BuildListenerThis event is fired before the project instance is fully configured. In particular no properties have been set and the project may not know its name or default target, yet.
buildStarted in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void buildFinished(BuildEvent event)
BuildListenerbuildFinished in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void subBuildFinished(BuildEvent event)
subBuildFinished in interface SubBuildListenerevent - the buildFinished eventBuildEvent.getException()public void subBuildStarted(BuildEvent event)
subBuildStarted in interface SubBuildListenerevent - the buildStarted eventpublic void targetStarted(BuildEvent event)
BuildListenertargetStarted in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void targetFinished(BuildEvent event)
BuildListenertargetFinished in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void taskStarted(BuildEvent event)
BuildListenertaskStarted in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void taskFinished(BuildEvent event)
BuildListenertaskFinished in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void messageLogged(BuildEvent event)
BuildListenermessageLogged in interface BuildListenerevent - An event with any relevant extra information.
Must not be null..public void setMessageOutputLevel(int level)
BuildLogger
Constants for the message levels are in the
Project class. The order of the levels, from least
to most verbose, is MSG_ERR, MSG_WARN,
MSG_INFO, MSG_VERBOSE,
MSG_DEBUG.
setMessageOutputLevel in interface BuildLoggerlevel - the logging level for the logger..public void setOutputPrintStream(java.io.PrintStream output)
BuildLoggersetOutputPrintStream in interface BuildLoggeroutput - The output stream for the logger.
Must not be null..public void setEmacsMode(boolean emacsMode)
BuildLoggersetEmacsMode in interface BuildLoggeremacsMode - 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)
BuildLoggersetErrorPrintStream in interface BuildLoggererr - The error stream for the logger.
Must not be null..public void setProject(Project project)
project - the project instancepublic Project getProject()
public void cleanup()