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:
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 org.apache.tools.ant.types.Path
     
    private boolean
     
    private Vector<Ignore>
     
    private Vector<org.apache.tools.ant.types.Path>
     
    private File
     
    private org.apache.tools.ant.types.Path
     

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPath(org.apache.tools.ant.types.Path path)
     
    private void
     
    private Set<String>
    List of packages defined in the application.
     
    org.apache.tools.ant.types.Path
     
     
    org.apache.tools.ant.types.Path
     
    void
     
    void
    setClasspath(org.apache.tools.ant.types.Path classpath)
     
    void
    setClasspathRef(org.apache.tools.ant.types.Reference r)
     
    void
    setFailOnError(boolean failOnError)
     
    void
    setSignature(File signature)
     
    void
    setSourcepath(org.apache.tools.ant.types.Path sourcepath)
     
    void
    setSourcepathRef(org.apache.tools.ant.types.Reference r)
     
    protected void
     

    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

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • signature

      private 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 Vector<org.apache.tools.ant.types.Path> paths
    • ignores

      private Vector<Ignore> ignores
    • annotations

      private Vector<Annotation> annotations
  • Constructor Details

    • CheckSignatureTask

      public CheckSignatureTask()
  • Method Details

    • addPath

      public void addPath(org.apache.tools.ant.types.Path path)
    • createIgnore

      public Ignore createIgnore()
    • createAnnotation

      public Annotation createAnnotation()
    • setSignature

      public void setSignature(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 class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • validate

      protected void validate()
    • buildPackageList

      private Set<String> buildPackageList() throws IOException
      List of packages defined in the application.
      Throws:
      IOException
    • apply

      private void apply(ClassFileVisitor v) throws IOException
      Throws:
      IOException