|
|||||||||||
| 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.Java
|
+--edu.ucsb.ccs.jcontractor.extras.jContractorTask
Ant task definition for jContractor. This task accepts all the options that the Java task does. (Note, however, that jContractor has never been tested with a Jar, and probably wouldn't work in this case.)
Parameters:
Attribute Description Required
--------- ----------- --------
none A package that is not to be no
instrumented. (Nested element.)
pre A package to be instrumented with no
precondition checks. (Nested
element.)
post A package to be instrumented with no
pre and postcondition checks.
(Nested element.)
all A package to be instrumented with no
all checks (pre, post, invariant).
(Nested element.)
verbose Toggles verbose logging. When no
verbose logging is enabled,
jInstrument prints the name of
each class as it is instrumented.
The arguments to "none", "pre", "post", and "all" are the names of
packages, with class names or wildcards. A "*" instead a class
name (as in "edu.*") means to match any class in that package or a
subpackage. To match all classes in any package, simply pass "*".
If only a class name is given the default package is assumed
("jInstrument" is the same as "Example:
<jContractor classname="MainClass" verbose="false">
<none package="*"/>
<pre package="mypackage.*"/>
<all package="mypackage.MyReallyImportantClass"/>
<arg value="cmd_line_arg1"/>
<arg value="cmd_line_arg2"/>
</jContractor>
jInstrumentTask| Constructor Summary | |
jContractorTask()
Create a new jContractorTask. |
|
| Method Summary | |
void |
clearArgs()
Clear the arguments that will be passed to the task that jContractor invokes. |
PackageLevelInstrumentationFilterType |
createAll()
Create a <all package="..."/> tag. |
org.apache.tools.ant.types.Commandline.Argument |
createArg()
Creates a nested arg element. |
PackageLevelInstrumentationFilterType |
createNone()
Create a <none package="..."/> tag. |
PackageLevelInstrumentationFilterType |
createPost()
Create a <post package="..."/> tag. |
PackageLevelInstrumentationFilterType |
createPre()
Create a <pre package="..."/> tag. |
void |
execute()
Execute jContractor to instrument and run the class named classname, with the specified command line
arguments. |
java.lang.String |
getClassname()
Get the name of the class that jContractor will invoke. |
boolean |
getVerbose()
Get the value of the verbose flag. |
void |
setArgs(java.lang.String s)
Set the arguments that will be passed to the class that jContractor invokes. |
void |
setClassname(java.lang.String name)
Set the name of the class that jContractor will invoke. |
void |
setVerbose(boolean flag)
Set the verbose flag. |
| Methods inherited from class org.apache.tools.ant.taskdefs.Java |
addEnv, addSysproperty, createClasspath, createJvmarg, executeJava, setAppend, setClasspath, setClasspathRef, setDir, setFailonerror, setFork, setJar, setJvm, setJvmargs, setJVMVersion, setMaxmemory, setNewenvironment, setOutput, setTimeout |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public jContractorTask()
| Method Detail |
public void setClassname(java.lang.String name)
setClassname in class org.apache.tools.ant.taskdefs.Javaname - the new class name.public java.lang.String getClassname()
public org.apache.tools.ant.types.Commandline.Argument createArg()
createArg in class org.apache.tools.ant.taskdefs.Javapublic void setArgs(java.lang.String s)
setArgs in class org.apache.tools.ant.taskdefs.Javapublic void clearArgs()
clearArgs in class org.apache.tools.ant.taskdefs.Javapublic void setVerbose(boolean flag)
flag - the new value of the flag.public boolean getVerbose()
public PackageLevelInstrumentationFilterType createNone()
public PackageLevelInstrumentationFilterType createPre()
public PackageLevelInstrumentationFilterType createPost()
public PackageLevelInstrumentationFilterType createAll()
public void execute()
throws org.apache.tools.ant.BuildException
classname, with the specified command line
arguments.
execute in class org.apache.tools.ant.taskdefs.Javaorg.apache.tools.ant.BuildException - if both "classname" and "jar"
attributes are given, or if neither is present.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||