| net.sourceforge.groboutils.codecoverage.v2.ant.GroboInstrumentTask
GroboInstrumentTask | public class GroboInstrumentTask extends Task (Code) | | A variation of the CoveragePostCompilerTask. This one is intended to
simplify the Ant build files. See
feature request 901588 for details.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/04/17 08:24:39 $ since: March 9, 2004 |
Inner Class :final public static class LoggerAttribute extends EnumeratedAttribute | |
Inner Class :final public static class LoggerProperty | |
Inner Class :final public static class HandleExistingAttribute extends EnumeratedAttribute | |
Method Summary | |
public void | addFileSet(FileSet fs) Add a new fileset instance to this compilation. | public void | addLoggerProp(LoggerProperty lp) Adds a property to the logger properties file. | public void | addMeasure(AnalysisModuleType amt) Creates a new analysis module. | public void | execute() | public void | setDestDir(File f) Sets the directory in which all the recompiled class files will be
placed. | public void | setIfExists(HandleExistingAttribute hea) | public void | setLogDir(File f) Sets the directory in which all the data accumulated from the
post compilation step will be placed, and the logging output
as well. | public void | setLogger(LoggerAttribute la) Set the type of logger to use. | public void | setLoggerFactory(String name) Allow the user to specify a logger factory class name. |
addFileSet | public void addFileSet(FileSet fs)(Code) | | Add a new fileset instance to this compilation. Whatever the fileset is,
only filename that are .class will be considered as
'candidates'. Currently, jar files are not read; you'll have to
uncompress them to a directory before running this step.
Parameters: fs - the new fileset containing the rules to get the testcases. |
addLoggerProp | public void addLoggerProp(LoggerProperty lp)(Code) | | Adds a property to the logger properties file.
|
execute | public void execute() throws BuildException(Code) | | Perform the task
|
setDestDir | public void setDestDir(File f)(Code) | | Sets the directory in which all the recompiled class files will be
placed. This directory should never be confused with the original
class file location.
|
setIfExists | public void setIfExists(HandleExistingAttribute hea)(Code) | | Sets the behavior when classes get post-compiled - should the
previous post-compiled class be replaced, kept, or should all
the previous data be cleaned?
|
setLogDir | public void setLogDir(File f)(Code) | | Sets the directory in which all the data accumulated from the
post compilation step will be placed, and the logging output
as well. This should be a directory dedicated just to the output data.
If the directory doesn't exist when the task runs, it will be
created.
|
setLogger | public void setLogger(LoggerAttribute la)(Code) | | Set the type of logger to use. This defaults to the "safe"
logger, which is JDK agnostic.
|
setLoggerFactory | public void setLoggerFactory(String name)(Code) | | Allow the user to specify a logger factory class name. If this
is specified, it overrides any value set by the "logger" attribute.
|
|
|