|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nokia.ant.taskdefs.CoverageRecorderEntry
public class CoverageRecorderEntry
This is a class that represents a XML recorder. This is the listener to the build process.
Nested Class Summary | |
---|---|
protected static class |
CoverageRecorderEntry.TimedElement
Utility class representing the time an element started. |
Constructor Summary | |
---|---|
protected |
CoverageRecorderEntry(java.lang.String name,
java.lang.String recordTaskName)
|
Method Summary | |
---|---|
void |
buildFinished(org.apache.tools.ant.BuildEvent event)
. |
void |
buildStarted(org.apache.tools.ant.BuildEvent event)
. |
void |
cleanup()
|
protected static javax.xml.parsers.DocumentBuilder |
getDocumentBuilder()
Returns a default DocumentBuilder instance or throws an ExceptionInInitializerError if it can't be created. |
java.lang.String |
getFilename()
|
protected java.util.Stack |
getStack()
Returns the stack of timed elements for the current thread. |
protected CoverageRecorderEntry.TimedElement |
getTaskElement(org.apache.tools.ant.Task task)
Get the TimedElement associated with a task. |
void |
messageLogged(org.apache.tools.ant.BuildEvent event)
. |
void |
setEmacsMode(boolean emacsMode)
. |
void |
setErrorPrintStream(java.io.PrintStream err)
. |
void |
setMessageOutputLevel(int level)
. |
void |
setOutputPrintStream(java.io.PrintStream output)
. |
void |
setProject(org.apache.tools.ant.Project project)
Set the project associated with this recorder entry. |
void |
setRecordState(java.lang.Boolean state)
Turns off or on this recorder. |
void |
subBuildFinished(org.apache.tools.ant.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(org.apache.tools.ant.BuildEvent event)
Empty implementation to satisfy the BuildListener interface. |
void |
targetFinished(org.apache.tools.ant.BuildEvent event)
. |
void |
targetStarted(org.apache.tools.ant.BuildEvent event)
. |
void |
taskFinished(org.apache.tools.ant.BuildEvent event)
. |
void |
taskStarted(org.apache.tools.ant.BuildEvent event)
. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CoverageRecorderEntry(java.lang.String name, java.lang.String recordTaskName)
name
- The name of this recorder (used as the filename).Method Detail |
---|
protected static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
protected java.util.Stack getStack()
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(org.apache.tools.ant.BuildEvent event)
buildStarted
in interface org.apache.tools.ant.BuildListener
public void buildFinished(org.apache.tools.ant.BuildEvent event)
buildFinished
in interface org.apache.tools.ant.BuildListener
public void subBuildFinished(org.apache.tools.ant.BuildEvent event)
subBuildFinished
in interface org.apache.tools.ant.SubBuildListener
event
- the buildFinished eventpublic void subBuildStarted(org.apache.tools.ant.BuildEvent event)
subBuildStarted
in interface org.apache.tools.ant.SubBuildListener
event
- the buildStarted eventpublic void targetStarted(org.apache.tools.ant.BuildEvent event)
targetStarted
in interface org.apache.tools.ant.BuildListener
public void targetFinished(org.apache.tools.ant.BuildEvent event)
targetFinished
in interface org.apache.tools.ant.BuildListener
public void taskStarted(org.apache.tools.ant.BuildEvent event)
taskStarted
in interface org.apache.tools.ant.BuildListener
public void taskFinished(org.apache.tools.ant.BuildEvent event)
taskFinished
in interface org.apache.tools.ant.BuildListener
protected CoverageRecorderEntry.TimedElement getTaskElement(org.apache.tools.ant.Task task)
public void messageLogged(org.apache.tools.ant.BuildEvent event)
messageLogged
in interface org.apache.tools.ant.BuildListener
public void setMessageOutputLevel(int level)
setMessageOutputLevel
in interface org.apache.tools.ant.BuildLogger
public void setOutputPrintStream(java.io.PrintStream output)
setOutputPrintStream
in interface org.apache.tools.ant.BuildLogger
public void setEmacsMode(boolean emacsMode)
setEmacsMode
in interface org.apache.tools.ant.BuildLogger
public void setErrorPrintStream(java.io.PrintStream err)
setErrorPrintStream
in interface org.apache.tools.ant.BuildLogger
public void setProject(org.apache.tools.ant.Project project)
project
- the project instancepublic void cleanup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |