|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.optional.sitraka.CovBase | +--org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
Runs Sitraka JProbe Coverage. Options are pretty numerous, you'd better check the manual for a full descriptions of options. (not that simple since they differ from the online help, from the usage command line and from the examples...)
For additional information, visit www.sitraka.com
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 java.lang.String |
exitPrompt
this is a somewhat annoying thing, set it to never |
protected java.util.Vector |
filesets
|
protected Filters |
filters
|
protected java.lang.String |
finalSnapshot
|
protected java.lang.String |
function
|
protected java.io.File |
inputFile
|
protected java.io.File |
javaExe
|
protected java.lang.String |
recordFromStart
|
protected java.lang.String |
seedName
|
protected java.io.File |
snapshotDir
|
protected Socket |
socket
|
protected boolean |
trackNatives
|
protected Triggers |
triggers
|
protected java.lang.String |
vm
|
protected int |
warnLevel
|
protected java.io.File |
workingDir
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
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 java.io.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 java.lang.String[] |
getParameters()
return the command line parameters. |
void |
setApplet(boolean value)
If true, run an applet. |
void |
setClassname(java.lang.String value)
classname to run as standalone or runner for filesets. |
void |
setExitprompt(java.lang.String value)
Toggles display of the console prompt: always, error, never |
void |
setFinalsnapshot(java.lang.String value)
Type of snapshot to send at program termination: none, coverage, all. |
void |
setInputfile(java.io.File value)
|
void |
setJavaexe(java.io.File value)
Path to the java executable. |
void |
setRecordfromstart(Coverage.Recordfromstart value)
"all", "coverage", or "none". |
void |
setSeedname(java.lang.String value)
seed name for snapshot file. |
void |
setSnapshotdir(java.io.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(java.lang.Integer value)
Set warning level (0-3, where 0 is the least amount of warnings). |
void |
setWorkingdir(java.io.File value)
The physical path to the working directory for the VM. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.sitraka.CovBase |
createTempFile, findCoverageJar, findExecutable, getHome, getParamFileArgument, isJProbe4Plus, setHome |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Commandline cmdl
protected CommandlineJava cmdlJava
protected java.lang.String function
protected java.lang.String seedName
protected java.io.File inputFile
protected java.io.File javaExe
protected java.lang.String vm
protected boolean applet
protected java.lang.String exitPrompt
protected Filters filters
protected Triggers triggers
protected java.lang.String finalSnapshot
protected java.lang.String recordFromStart
protected java.io.File snapshotDir
protected java.io.File workingDir
protected boolean trackNatives
protected Socket socket
protected int warnLevel
protected java.util.Vector filesets
Constructor Detail |
public Coverage()
Method Detail |
public void setSeedname(java.lang.String value)
public void setInputfile(java.io.File value)
public void setJavaexe(java.io.File value)
public void setVm(Coverage.Javavm value)
public void setApplet(boolean value)
public void setExitprompt(java.lang.String value)
public Filters createFilters()
public Triggers createTriggers()
public Socket createSocket()
public void setFinalsnapshot(java.lang.String value)
public void setRecordfromstart(Coverage.Recordfromstart value)
public void setWarnlevel(java.lang.Integer value)
public void setSnapshotdir(java.io.File value)
public void setWorkingdir(java.io.File value)
public void setTracknatives(boolean value)
public Commandline.Argument createJvmarg()
public Commandline.Argument createArg()
public Path createClasspath()
public void setClassname(java.lang.String value)
public void addFileset(FileSet fs)
public void execute() throws BuildException
execute
in class Task
BuildException
- if something goes wrong with the buildprotected void checkOptions() throws BuildException
BuildException
protected java.lang.String[] getParameters()
protected java.io.File createParamFile() throws BuildException
BuildException
- thrown if something bad happens while writing
the arguments to the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |