org.apache.tools.ant.taskdefs
Class RecorderEntry
java.lang.Object
org.apache.tools.ant.taskdefs.RecorderEntry
- BuildListener, BuildLogger, EventListener, SubBuildListener
public class RecorderEntry
extends java.lang.Object
This is a class that represents a recorder. This is the listener to the
build process.
RecorderEntry
protected RecorderEntry(String name)
name
- The name of this recorder (used as the filename).
cleanup
public void cleanup()
getFilename
public String getFilename()
- the name of the file the output is sent to.
setEmacsMode
public void setEmacsMode(boolean emacsMode)
Sets this logger to produce emacs (and other editor) friendly output.
- setEmacsMode in interface BuildLogger
emacsMode
- true
if output is to be unadorned so that
emacs and other editors can parse files names, etc.
setErrorPrintStream
public void setErrorPrintStream(PrintStream err)
Sets the output stream to which this logger is to send error messages.
- setErrorPrintStream in interface BuildLogger
err
- The error stream for the logger.
Must not be null
.
setMessageOutputLevel
public void setMessageOutputLevel(int level)
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
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 BuildLogger
level
- the logging level for the logger.
setOutputPrintStream
public void setOutputPrintStream(PrintStream output)
Sets the output stream to which this logger is to send its output.
- setOutputPrintStream in interface BuildLogger
output
- The output stream for the logger.
Must not be null
.
setProject
public void setProject(Project project)
Set the project associated with this recorder entry.
project
- the project instance
setRecordState
public void setRecordState(Boolean state)
Turns off or on this recorder.
state
- true for on, false for off, null for no change.
subBuildFinished
public 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.
- subBuildFinished in interface SubBuildListener
event
- the buildFinished event
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.