Class AbstractFindBugsTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ComputeBugHistoryTask, ConvertXmlToTextTask, FilterBugsTask, FindBugsTask, MineBugHistoryTask, SetBugDatabaseInfoTask, UnionBugs2

public abstract class AbstractFindBugsTask extends org.apache.tools.ant.Task
Abstract base class for Ant tasks that run programs (main() methods) in findbugs.jar or findbugsGUI.jar.
Author:
David Hovemeyer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tools.ant.types.Path
    Path to use for classpath.
    org.apache.tools.ant.types.Path
    Path to use for plugin list.
    Create a SystemProperty (to handle <systemProperty> elements).
    void
     
    void
    setClasspath(org.apache.tools.ant.types.Path src)
    Set the classpath to use.
    void
    setClasspathRef(org.apache.tools.ant.types.Reference r)
    Adds a reference to a classpath defined elsewhere.
    void
    setDebug(boolean flag)
    Set the debug flag
    void
    Tells this task to set the property with the given name to "true" when there were errors.
    void
    setFailOnError(boolean flag)
    Set the failOnError flag
    void
    setHome(File homeDir)
    Set the home directory into which findbugs was installed
    void
    Set the command used to start the VM
    void
    Set any specific jvm args
    void
    setPluginList(org.apache.tools.ant.types.Path src)
    the plugin list to use.
    void
    setPluginListRef(org.apache.tools.ant.types.Reference r)
    Adds a reference to a plugin list defined elsewhere.
    void
    setTimeout(long timeout)
    Set timeout in milliseconds.

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

    bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • setHome

      public void setHome(File homeDir)
      Set the home directory into which findbugs was installed
      Parameters:
      homeDir - installation directory
    • setDebug

      public void setDebug(boolean flag)
      Set the debug flag
      Parameters:
      flag - true to enable debugging
    • setJvmargs

      public void setJvmargs(String args)
      Set any specific jvm args
      Parameters:
      args - JVM arguments
    • setJvm

      public void setJvm(String jvm)
      Set the command used to start the VM
      Parameters:
      jvm - command used to start the VM
    • setTimeout

      public void setTimeout(long timeout)
      Set timeout in milliseconds.
      Parameters:
      timeout - the timeout
    • setFailOnError

      public void setFailOnError(boolean flag)
      Set the failOnError flag
      Parameters:
      flag - true to enable
    • setErrorProperty

      public void setErrorProperty(String name)
      Tells this task to set the property with the given name to "true" when there were errors.
      Parameters:
      name - property to set to "true" on errors
    • createSystemProperty

      public AbstractFindBugsTask.SystemProperty createSystemProperty()
      Create a SystemProperty (to handle <systemProperty> elements).
      Returns:
      new property
    • setClasspath

      public void setClasspath(org.apache.tools.ant.types.Path src)
      Set the classpath to use.
      Parameters:
      src - classpath to use
    • createClasspath

      public org.apache.tools.ant.types.Path createClasspath()
      Path to use for classpath.
      Returns:
      path to use for classpath
    • setClasspathRef

      public void setClasspathRef(org.apache.tools.ant.types.Reference r)
      Adds a reference to a classpath defined elsewhere.
      Parameters:
      r - reference to a classpath defined elsewhere
    • setPluginList

      public void setPluginList(org.apache.tools.ant.types.Path src)
      the plugin list to use.
      Parameters:
      src - plugin list to use
    • createPluginList

      public org.apache.tools.ant.types.Path createPluginList()
      Path to use for plugin list.
      Returns:
      path to use for plugin list
    • setPluginListRef

      public void setPluginListRef(org.apache.tools.ant.types.Reference r)
      Adds a reference to a plugin list defined elsewhere.
      Parameters:
      r - reference to a plugin list defined elsewhere
    • 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