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.Task
Checks the files against the provided signature.- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<Annotation>
annotations
private org.apache.tools.ant.types.Path
classpath
private boolean
failOnError
private java.util.Vector<Ignore>
ignores
private java.util.Vector<org.apache.tools.ant.types.Path>
paths
private java.io.File
signature
private org.apache.tools.ant.types.Path
sourcepath
-
Constructor Summary
Constructors Constructor Description CheckSignatureTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPath(org.apache.tools.ant.types.Path path)
private void
apply(ClassFileVisitor v)
private java.util.Set<java.lang.String>
buildPackageList()
List of packages defined in the application.Annotation
createAnnotation()
org.apache.tools.ant.types.Path
createClasspath()
Ignore
createIgnore()
org.apache.tools.ant.types.Path
createSourcepath()
void
execute()
void
setClasspath(org.apache.tools.ant.types.Path classpath)
void
setClasspathRef(org.apache.tools.ant.types.Reference r)
void
setFailOnError(boolean failOnError)
void
setSignature(java.io.File signature)
void
setSourcepath(org.apache.tools.ant.types.Path sourcepath)
void
setSourcepathRef(org.apache.tools.ant.types.Reference r)
protected void
validate()
-
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:
execute
in 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.IOException
List of packages defined in the application.- Throws:
java.io.IOException
-
apply
private void apply(ClassFileVisitor v) throws java.io.IOException
- Throws:
java.io.IOException
-
-