|
||||||||||
| 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.MatchingTask
|
+--org.acmsl.contractchecker.ContractCheckerTask
Generates ContractChecker aspects and weaves them using Ant.
| Field Summary |
| Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
| 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 | |
ContractCheckerTask()
Creates a ContractCheckerTask. |
|
| Method Summary | |
void |
addSourceRoots(java.io.File file)
Adds a new file to the source path. |
org.apache.tools.ant.types.Path |
createClasspath()
Creates the classpath. |
org.apache.tools.ant.types.Path |
createSourceRoots()
Creates the source-roots path. |
void |
execute()
Requests the ContractChecker compilation to be performed. |
void |
executeDoclet(java.io.File aspectOutput,
java.lang.String violationException)
Requests the Javadoc task invokation to generate the aspects using ContractCheckerDoclet. |
protected org.aspectj.tools.ant.taskdefs.AjcTask |
getAjcTask()
Retrieves the AjcTask. |
java.io.File |
getAspectoutput()
Retrieves the output folder for the generated aspects. |
org.apache.tools.ant.types.Path |
getClasspath()
Retrieves the classpath. |
org.apache.tools.ant.types.Path |
getSourceRoots()
Retrieves the source roots. |
protected java.io.File |
getTempBasedAspectOutput()
Defines the output folder for classes, using the operating system temporary folder. |
java.lang.String |
getTemplatefactoryclass()
Retrieves the template factory class. |
java.lang.String |
getViolationexception()
Retrieves the contract violation exception. |
protected void |
setAjcTask(org.aspectj.tools.ant.taskdefs.AjcTask task)
Specifies the AjcTask. |
void |
setAspectoutput(java.io.File aspectOutput)
Specifies the output folder for the generated aspects. |
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Specifies the classpath. |
void |
setClasspathref(org.apache.tools.ant.types.Reference ref)
Specifies the classpath reference. |
void |
setCompliance(java.lang.String compliance)
Specifies the language compliance level. |
void |
setCopyInjars(boolean doCopy)
Specifies whether to copy all non-.class contents of injars to outjar after compile completes. |
void |
setDebug(boolean debug)
Specifies the debug flag. |
void |
setDebugLevel(java.lang.String level)
Specifies the debug level. |
void |
setDeprecation(boolean deprecation)
Specifies the deprecation flag. |
void |
setDestdir(java.io.File dir)
Specifies the destination folder. |
void |
setEmacssym(boolean emacssym)
Specifies the emacssym flag. |
void |
setEncoding(java.lang.String encoding)
Specifies the encoding. |
void |
setFailonerror(boolean failOnError)
Specifies the fail-on-error flag. |
void |
setFork(boolean fork)
Specifies the fork setting. |
void |
setHelp(boolean help)
Specifies the help flag. |
void |
setIncremental(boolean incremental)
Specifies the incremental behaviour. |
void |
setListFileArgs(boolean listFileArgs)
Specifies the list-file-args flag. |
void |
setLog(java.io.File file)
Specifies the log file. |
void |
setMaxmem(java.lang.String maxMem)
Specifies the maxMem flag. |
void |
setNoExit(boolean noExit)
Specifies the no-exit flag. |
void |
setNoImportError(boolean noImportError)
Specifies the no-import-error flag. |
void |
setNowarn(boolean nowarn)
Specifies the nowarn flag. |
void |
setOutjar(java.io.File file)
Specifies the outjar file. |
void |
setPreserveAllLocals(boolean preserveAllLocals)
Specifies the preserve-all-locals flag. |
void |
setProceedOnError(boolean proceedOnError)
Specifies the proceed-on-error flag. |
void |
setProgress(boolean progress)
Specifies the progress. |
void |
setReferenceInfo(boolean referenceInfo)
Specifies the reference info. |
void |
setSource(java.lang.String source)
Specifies the source compliance level. |
void |
setSourceRootCopyFilter(java.lang.String filter)
Specifies whether to copy all files from all source root directories except those specified here. |
void |
setSourceRoots(org.apache.tools.ant.types.Path roots)
Specifies the source roots. |
void |
setSourcerootsref(org.apache.tools.ant.types.Reference ref)
Specifies the source roots reference. |
void |
setTagFile(java.io.File file)
Specifies the tag file. |
void |
setTarget(java.lang.String target)
Specifies the target. |
void |
setTemplatefactoryclass(java.lang.String factoryClass)
Specifies the template factory class. |
void |
setTime(boolean time)
Specifies the time flag. |
void |
setVerbose(boolean verbose)
Specifies the verbose flag. |
void |
setVersion(boolean version)
Specifies the version flag. |
void |
setViolationexception(java.lang.String exception)
Specifies the contract violation exception. |
void |
setWarn(java.lang.String warnings)
Specifies the warnings. |
void |
setX(java.lang.String input)
Specifies the X option. |
void |
setXlint(java.lang.String xlint)
Specifies the Xlint value. |
void |
setXlintfile(java.io.File xlintFile)
Specifies the xlint file. |
void |
setXlintwarnings(boolean xlintwarnings)
Specifies the Xlint warnings. |
void |
setXNoweave(boolean noweave)
Specifies the xnoweave flag. |
| Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContractCheckerTask()
| Method Detail |
protected void setAjcTask(org.aspectj.tools.ant.taskdefs.AjcTask task)
task - the task.protected org.aspectj.tools.ant.taskdefs.AjcTask getAjcTask()
public void setAspectoutput(java.io.File aspectOutput)
aspectOutput - such folder.public java.io.File getAspectoutput()
protected java.io.File getTempBasedAspectOutput()
throws java.io.IOException
java.io.IOException - if the temporary folder could not be created.public void setTemplatefactoryclass(java.lang.String factoryClass)
factoryClass - the new template factory class.public java.lang.String getTemplatefactoryclass()
public void setViolationexception(java.lang.String exception)
exception - such exception.public java.lang.String getViolationexception()
public void setIncremental(boolean incremental)
incremental - such behaviour.public void setHelp(boolean help)
help - such flag.public void setVersion(boolean version)
version - such flag.public void setXNoweave(boolean noweave)
noweave - such flag.public void setNowarn(boolean nowarn)
nowarn - such flag.public void setDeprecation(boolean deprecation)
deprecation - such flag.public void setWarn(java.lang.String warnings)
warnings - the list of warnings.public void setDebug(boolean debug)
debug - such flag.public void setDebugLevel(java.lang.String level)
level - such level.public void setEmacssym(boolean emacssym)
emacssym - such flag.public void setXlintwarnings(boolean xlintwarnings)
public void setXlint(java.lang.String xlint)
xlint - such value.public void setXlintfile(java.io.File xlintFile)
xlintFile - such file.public void setPreserveAllLocals(boolean preserveAllLocals)
preserveAllLocals - such flag.public void setNoImportError(boolean noImportError)
noImportError - such flag.public void setEncoding(java.lang.String encoding)
encoding - such value.public void setLog(java.io.File file)
file - such file.public void setProceedOnError(boolean proceedOnError)
proceedOnError - such flag.public void setVerbose(boolean verbose)
verbose - such flag.public void setListFileArgs(boolean listFileArgs)
listFileArgs - such flag.public void setReferenceInfo(boolean referenceInfo)
referenceInfo - such value.public void setProgress(boolean progress)
progress - such value.public void setTime(boolean time)
time - such value.public void setNoExit(boolean noExit)
noExit - such flag.public void setFailonerror(boolean failOnError)
failOnError - such flag.public void setFork(boolean fork)
fork - such setting.public void setMaxmem(java.lang.String maxMem)
maxMem - such flag.public void setTagFile(java.io.File file)
file - such file.public void setOutjar(java.io.File file)
public void setDestdir(java.io.File dir)
dir - such dir.public void setTarget(java.lang.String target)
target - the target.public void setCompliance(java.lang.String compliance)
compliance - either "1.3" or "1.4"public void setSource(java.lang.String source)
source - either "1.3" or "1.4"public void setCopyInjars(boolean doCopy)
doCopy - such flag.public void setSourceRootCopyFilter(java.lang.String filter)
filter - a String acceptable as an excludes
filter for an Ant Zip fileset.public void setX(java.lang.String input)
input - such option.public void setSourceRoots(org.apache.tools.ant.types.Path roots)
roots - such path.public org.apache.tools.ant.types.Path getSourceRoots()
public org.apache.tools.ant.types.Path createSourceRoots()
public void addSourceRoots(java.io.File file)
file - the new file.public void setSourcerootsref(org.apache.tools.ant.types.Reference ref)
ref - such reference.public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - such path.public org.apache.tools.ant.types.Path getClasspath()
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathref(org.apache.tools.ant.types.Reference ref)
ref - such reference.
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - whenever the required
parameters are not present or valid.
public void executeDoclet(java.io.File aspectOutput,
java.lang.String violationException)
throws org.apache.tools.ant.BuildException
aspectOutput - the output folder for the aspects.violationException - the contract violation exception.
org.apache.tools.ant.BuildException - if the doclet could not be executed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||