org.apache.tools.ant.taskdefs

Class RecorderEntry

public class RecorderEntry extends Object implements BuildLogger, SubBuildListener

This is a class that represents a recorder. This is the listener to the build process.

Since: Ant 1.4

Constructor Summary
protected RecorderEntry(String name)
Method Summary
voidbuildFinished(BuildEvent event)
voidbuildStarted(BuildEvent event)
voidcleanup()
StringgetFilename()
voidmessageLogged(BuildEvent event)
voidsetEmacsMode(boolean emacsMode)
voidsetErrorPrintStream(PrintStream err)
voidsetMessageOutputLevel(int level)
voidsetOutputPrintStream(PrintStream output)
voidsetProject(Project project)
Set the project associated with this recorder entry.
voidsetRecordState(Boolean state)
Turns off or on this recorder.
voidsubBuildFinished(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.
voidsubBuildStarted(BuildEvent event)
Empty implementation to satisfy the BuildListener interface.
voidtargetFinished(BuildEvent event)
voidtargetStarted(BuildEvent event)
voidtaskFinished(BuildEvent event)
voidtaskStarted(BuildEvent event)

Constructor Detail

RecorderEntry

protected RecorderEntry(String name)

Parameters: name The name of this recorder (used as the filename).

Method Detail

buildFinished

public void buildFinished(BuildEvent event)

buildStarted

public void buildStarted(BuildEvent event)

cleanup

public void cleanup()

Since: 1.6.2

getFilename

public String getFilename()

Returns: the name of the file the output is sent to.

messageLogged

public void messageLogged(BuildEvent event)

setEmacsMode

public void setEmacsMode(boolean emacsMode)

setErrorPrintStream

public void setErrorPrintStream(PrintStream err)

setMessageOutputLevel

public void setMessageOutputLevel(int level)

setOutputPrintStream

public void setOutputPrintStream(PrintStream output)

setProject

public void setProject(Project project)
Set the project associated with this recorder entry.

Parameters: project the project instance

Since: 1.6.2

setRecordState

public void setRecordState(Boolean state)
Turns off or on this recorder.

Parameters: 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.

Parameters: event the buildFinished event

Since: Ant 1.6.2

subBuildStarted

public void subBuildStarted(BuildEvent event)
Empty implementation to satisfy the BuildListener interface.

Parameters: event the buildStarted event

Since: Ant 1.6.2

targetFinished

public void targetFinished(BuildEvent event)

targetStarted

public void targetStarted(BuildEvent event)

taskFinished

public void taskFinished(BuildEvent event)

taskStarted

public void taskStarted(BuildEvent event)
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.