|
|||||||||||
| 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
|
+--edu.ucsb.ccs.jcontractor.extras.jInstrumentTask
Ant task definition for jInstrument.
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.)
srcdir A directory containing Java class yes
files to instrument. All classes
in this directory and all
subdirectories will be processed.
destdir The directory to which instrumented no
files will be written. Default is
the directory of the build file.
verbose Toggles verbose logging. When no
verbose logging is enabled,
jInstrument prints the name of
each class as it is instrumented.
strip Instructs jInstrument to remove no
contract methods from bytecode, in
order to decrease the file size.
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:
<jInstrument srcdir="${build.dest}" verbose="false">
<none package="*"/>
<pre package="mypackage.*"/>
<all package="mypackage.MyReallyImportantClass"/>
</jInstrument>
jContractorTask| Constructor Summary | |
jInstrumentTask()
Create a new jInstrumentTask. |
|
| Method Summary | |
PackageLevelInstrumentationFilterType |
createAll()
Create a <all package="..."/> tag. |
PackageLevelInstrumentationFilterType |
createNone()
Create a <none package="..."/> tag. |
PackageLevelInstrumentationFilterType |
createPost()
Create a <post package="..."/> tag. |
PackageLevelInstrumentationFilterType |
createPre()
Create a <pre package="..."/> tag. |
void |
execute()
Execute jInstrument to instrument each class file in the directory specified by srcdir. |
java.lang.String |
getDestdir()
Get the destination directory of instrumented class files. |
org.apache.tools.ant.types.Path |
getSrcdir()
Get the source directory. |
boolean |
getStrip()
Get the value of the strip mode flag. |
boolean |
getVerbose()
Get the value of the verbose flag. |
void |
setDestdir(java.lang.String destination)
Set the destination directory of instrumented class files. |
void |
setSrcdir(org.apache.tools.ant.types.Path newSrcdir)
Set the source directory. |
void |
setStrip(boolean flag)
Set the value of the strip mode flag. |
void |
setVerbose(boolean flag)
Set the verbose flag. |
| 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 jInstrumentTask()
| Method Detail |
public void setSrcdir(org.apache.tools.ant.types.Path newSrcdir)
newSrcdir - the new source directory.getSrcdir()public org.apache.tools.ant.types.Path getSrcdir()
setSrcdir(Path)public void setDestdir(java.lang.String destination)
destination - the new destination.public java.lang.String getDestdir()
public void setVerbose(boolean flag)
flag - the new value of the flag.public boolean getVerbose()
public void setStrip(boolean flag)
public boolean getStrip()
public PackageLevelInstrumentationFilterType createNone()
public PackageLevelInstrumentationFilterType createPre()
public PackageLevelInstrumentationFilterType createPost()
public PackageLevelInstrumentationFilterType createAll()
public void execute()
throws org.apache.tools.ant.BuildException
srcdir.
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if the "srcdir" attribute was not set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||