Class CheckSignatureTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.codehaus.mojo.animal_sniffer.ant.CheckSignatureTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class CheckSignatureTask extends org.apache.tools.ant.TaskChecks the files against the provided signature.- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<Annotation>annotationsprivate org.apache.tools.ant.types.Pathclasspathprivate booleanfailOnErrorprivate java.util.Vector<Ignore>ignoresprivate java.util.Vector<org.apache.tools.ant.types.Path>pathsprivate java.io.Filesignatureprivate org.apache.tools.ant.types.Pathsourcepath
-
Constructor Summary
Constructors Constructor Description CheckSignatureTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPath(org.apache.tools.ant.types.Path path)private voidapply(ClassFileVisitor v)private java.util.Set<java.lang.String>buildPackageList()List of packages defined in the application.AnnotationcreateAnnotation()org.apache.tools.ant.types.PathcreateClasspath()IgnorecreateIgnore()org.apache.tools.ant.types.PathcreateSourcepath()voidexecute()voidsetClasspath(org.apache.tools.ant.types.Path classpath)voidsetClasspathRef(org.apache.tools.ant.types.Reference r)voidsetFailOnError(boolean failOnError)voidsetSignature(java.io.File signature)voidsetSourcepath(org.apache.tools.ant.types.Path sourcepath)voidsetSourcepathRef(org.apache.tools.ant.types.Reference r)protected voidvalidate()-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
signature
private java.io.File signature
-
classpath
private org.apache.tools.ant.types.Path classpath
-
sourcepath
private org.apache.tools.ant.types.Path sourcepath
-
failOnError
private boolean failOnError
-
paths
private java.util.Vector<org.apache.tools.ant.types.Path> paths
-
ignores
private java.util.Vector<Ignore> ignores
-
annotations
private java.util.Vector<Annotation> annotations
-
-
Method Detail
-
addPath
public void addPath(org.apache.tools.ant.types.Path path)
-
createIgnore
public Ignore createIgnore()
-
createAnnotation
public Annotation createAnnotation()
-
setSignature
public void setSignature(java.io.File signature)
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
-
createSourcepath
public org.apache.tools.ant.types.Path createSourcepath()
-
setSourcepath
public void setSourcepath(org.apache.tools.ant.types.Path sourcepath)
-
setSourcepathRef
public void setSourcepathRef(org.apache.tools.ant.types.Reference r)
-
setFailOnError
public void setFailOnError(boolean failOnError)
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
validate
protected void validate()
-
buildPackageList
private java.util.Set<java.lang.String> buildPackageList() throws java.io.IOExceptionList of packages defined in the application.- Throws:
java.io.IOException
-
apply
private void apply(ClassFileVisitor v) throws java.io.IOException
- Throws:
java.io.IOException
-
-