| Modifier and Type | Field and Description |
|---|---|
| private boolean | emacsMode
Strip task banners if true. |
| private String | filename
The name of the file associated with this recorder entry. |
| private int | loglevel
The current verbosity level to record at. |
| private PrintStream | out
The output PrintStream to record to. |
| private Project | project
project instance the recorder is associated with |
| private boolean | record
The state of the recorder (recorder on or off). |
| private long | targetStartTime
The start time of the last know target. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | buildFinished(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| public void | buildStarted(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| public void | |
| pack-priv void | |
| private void | |
| private static String | |
| public String | |
| public int | |
| public Project | |
| private void | |
| public void | messageLogged(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| pack-priv void | openFile(boolean
Indicates if output must be appended to the logfile or that
the logfile should be overwritten. append)Initially opens the file associated with this recorder. |
| private void | |
| pack-priv void | |
| public void | setEmacsMode(boolean
true if output is to be unadorned so that
emacs and other editors can parse files names, etc.Implements org. |
| public void | setErrorPrintStream(PrintStream
The error stream for the logger.
Must not be err)null.Implements org. |
| public void | setMessageOutputLevel(int
the logging level for the logger. level)Implements org. |
| public void | setOutputPrintStream(PrintStream
The output stream for the logger.
Must not be output)null.Implements org. |
| public void | |
| public void | setRecordState(Boolean
true for on, false for off, null for no change. state)Turns off or on this recorder. |
| public void | subBuildFinished(BuildEvent
the buildFinished event event)Implements org. |
| public void | subBuildStarted(BuildEvent
the buildStarted event event)Implements org. |
| public void | targetFinished(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| public void | targetStarted(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| public void | taskFinished(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| public void | taskStarted(BuildEvent
An event with any relevant extra information.
Must not be event)null.Implements org. |
| emacsMode | back to summary |
|---|---|
| private boolean emacsMode Strip task banners if true. | |
| filename | back to summary |
|---|---|
| private String filename The name of the file associated with this recorder entry. | |
| loglevel | back to summary |
|---|---|
| private int loglevel The current verbosity level to record at. | |
| out | back to summary |
|---|---|
| private PrintStream out The output PrintStream to record to. | |
| project | back to summary |
|---|---|
| private Project project project instance the recorder is associated with | |
| record | back to summary |
|---|---|
| private boolean record The state of the recorder (recorder on or off). | |
| targetStartTime | back to summary |
|---|---|
| private long targetStartTime The start time of the last know target. | |
| RecorderEntry | back to summary |
|---|---|
protected RecorderEntry(String name)
| |
| buildFinished | back to summary |
|---|---|
| public void buildFinished(BuildEvent event) Implements org. Doc from org. Signals that the last target has finished. This event will still be fired if an error occurred during the build.
| |
| buildStarted | back to summary |
|---|---|
| public void buildStarted(BuildEvent event) Implements org. Doc from org. Signals that a build has started. This event is fired before any targets have started. This 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.
| |
| cleanup | back to summary |
|---|---|
public void cleanup()
| |
| closeFile | back to summary |
|---|---|
| pack-priv void closeFile() Closes the file associated with this recorder. Used by Recorder.
| |
| flush | back to summary |
|---|---|
| private void flush() | |
| formatTime | back to summary |
|---|---|
| private static String formatTime(long millis) | |
| getFilename | back to summary |
|---|---|
public String getFilename()
| |
| getMessageOutputLevel | back to summary |
|---|---|
| public int getMessageOutputLevel() Overrides default org.
| |
| getProject | back to summary |
|---|---|
| public Project getProject() Get the project associated with this recorder entry.
| |
| log | back to summary |
|---|---|
| private void log(String mesg, int level) The thing that actually sends the information to the output.
| |
| messageLogged | back to summary |
|---|---|
| public void messageLogged(BuildEvent event) Implements org. Doc from org. Signals a message logging event.
| |
| openFile | back to summary |
|---|---|
| pack-priv void openFile(boolean append) throws BuildException Initially opens the file associated with this recorder. Used by Recorder.
| |
| openFileImpl | back to summary |
|---|---|
| private void openFileImpl(boolean append) throws BuildException | |
| reopenFile | back to summary |
|---|---|
| pack-priv void reopenFile() throws BuildException Re-opens the file associated with this recorder. Used by Recorder.
| |
| setEmacsMode | back to summary |
|---|---|
| public void setEmacsMode(boolean emacsMode) Implements org. Doc from org. Sets this logger to produce emacs (and other editor) friendly output.
| |
| setErrorPrintStream | back to summary |
|---|---|
| public void setErrorPrintStream(PrintStream err) Implements org. Doc from org. Sets the output stream to which this logger is to send error messages.
| |
| setMessageOutputLevel | back to summary |
|---|---|
| public void setMessageOutputLevel(int level) Implements org. Doc from org. Sets the highest level of message this logger should respond to. Only messages with a message level lower than or equal to the given level should be written to the log.
Constants for the message levels are in the
| |
| setOutputPrintStream | back to summary |
|---|---|
| public void setOutputPrintStream(PrintStream output) Implements org. Doc from org. Sets the output stream to which this logger is to send its output.
| |
| setProject | back to summary |
|---|---|
| public void setProject(Project project) Set the project associated with this recorder entry.
| |
| setRecordState | back to summary |
|---|---|
| public void setRecordState(Boolean state) Turns off or on this recorder.
| |
| subBuildFinished | back to summary |
|---|---|
| public void subBuildFinished(BuildEvent event) Implements org. 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.
| |
| subBuildStarted | back to summary |
|---|---|
| public void subBuildStarted(BuildEvent event) Implements org. Empty implementation to satisfy the BuildListener interface.
| |
| targetFinished | back to summary |
|---|---|
| public void targetFinished(BuildEvent event) Implements org. Doc from org. Signals that a target has finished. This event will still be fired if an error occurred during the build.
| |
| targetStarted | back to summary |
|---|---|
| public void targetStarted(BuildEvent event) Implements org. Doc from org. Signals that a target is starting.
| |
| taskFinished | back to summary |
|---|---|
| public void taskFinished(BuildEvent event) Implements org. Doc from org. Signals that a task has finished. This event will still be fired if an error occurred during the build.
| |
| taskStarted | back to summary |
|---|---|
| public void taskStarted(BuildEvent event) Implements org. Doc from org. Signals that a task is starting.
| |