org.apache.tools.ant.taskdefs.optional.sitraka
public class Coverage extends CovBase
For additional information, visit www.sitraka.com
UNKNOWN: name="jpcoverage" category="metrics"
| Nested Class Summary | |
|---|---|
| static class | Coverage.Finalsnapshot |
| static class | Coverage.Javavm |
| static class | Coverage.Recordfromstart |
| Field Summary | |
|---|---|
| protected boolean | applet |
| protected Commandline | cmdl |
| protected CommandlineJava | cmdlJava |
| protected String | exitPrompt this is a somewhat annoying thing, set it to never |
| protected Vector | filesets |
| protected Filters | filters |
| protected String | finalSnapshot |
| protected String | function |
| protected File | inputFile |
| protected File | javaExe |
| protected String | recordFromStart |
| protected String | seedName |
| protected File | snapshotDir |
| protected Socket | socket |
| protected boolean | trackNatives |
| protected Triggers | triggers |
| protected String | vm |
| protected int | warnLevel |
| protected File | workingDir |
| Constructor Summary | |
|---|---|
| Coverage() | |
| Method Summary | |
|---|---|
| void | addFileset(FileSet fs)
the classnames to execute. |
| protected void | checkOptions() wheck what is necessary to check, Coverage will do the job for us |
| Commandline.Argument | createArg()
Adds a command argument. |
| Path | createClasspath()
classpath to run the files. |
| Filters | createFilters()
Defines class/method filters based on pattern matching.
|
| Commandline.Argument | createJvmarg()
Adds a JVM argument. |
| protected File | createParamFile()
create the parameter file from the given options. |
| Socket | createSocket()
Define a host and port to connect to if you want to do
remote viewing. |
| Triggers | createTriggers()
Defines events to use for interacting with the
collection of data performed during coverage.
|
| void | execute() execute the jplauncher by providing a parameter file |
| protected String[] | getParameters()
return the command line parameters. |
| void | setApplet(boolean value)
If true, run an applet. |
| void | setClassname(String value)
classname to run as standalone or runner for filesets. |
| void | setExitprompt(String value)
Toggles display of the console prompt: always, error, never |
| void | setFinalsnapshot(String value)
Type of snapshot to send at program termination: none, coverage, all.
|
| void | setInputfile(File value) |
| void | setJavaexe(File value)
Path to the java executable. |
| void | setRecordfromstart(Coverage.Recordfromstart value)
"all", "coverage", or "none". |
| void | setSeedname(String value) seed name for snapshot file. |
| void | setSnapshotdir(File value)
The path to the directory where snapshot files are stored.
|
| void | setTracknatives(boolean value)
If true, track native methods. |
| void | setVm(Coverage.Javavm value)
Indicates which virtual machine to run: "jdk117", "jdk118" or "java2".
|
| void | setWarnlevel(Integer value)
Set warning level (0-3, where 0 is the least amount of warnings). |
| void | setWorkingdir(File value)
The physical path to the working directory for the VM. |
Returns: the file object where are written the configuration to run JProbe Coverage
Throws: BuildException thrown if something bad happens while writing the arguments to the file.
UNKNOWN: ignore="true"