Class HistoryPointTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.openclover.ant.tasks.AbstractCloverTask
org.openclover.ant.tasks.HistoryPointTask
All Implemented Interfaces:
Cloneable

public class HistoryPointTask extends AbstractCloverTask
Ant support for the history-point clover functionality.

A history-point is a snapshot of the coverage at a particular point in time. Multiple history points can then be used to generate a historical graph plotting the changes in coverage over time.

  • Field Summary

    Fields inherited from class org.openclover.ant.tasks.AbstractCloverTask

    debug

    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
    addFileSet(org.apache.tools.ant.types.FileSet fileset)
    Support the use of filesets to filter the history point coverage.
    void
    addTestResults(org.apache.tools.ant.types.FileSet fileset)
     
    void
    addTestSources(org.apache.tools.ant.types.FileSet fileset)
     
    void
     
     
    void
    setAlwaysReport(boolean alwaysReport)
     
    void
    setDate(String dateString)
    Specify the effective date for this history point.
    void
    setDateFormat(String dateFormat)
    Specify the format of the date property.
    void
    setFilter(String filter)
     
    void
    setHistoryDir(File historyDir)
    Sepcify the directory into which the history information will be written.
    void
     
    void
    setOverwrite(boolean overwrite)
     
    void
    setProperty(String property)
    Specifies the property name to hold the name of the generated output file
    void
    setSpan(org.openclover.core.cfg.Interval span)
    Specify the span to be used for generating this history-point
    void
    setSrcLevel(boolean srcLevel)
     

    Methods inherited from class org.openclover.ant.tasks.AbstractCloverTask

    execute, getInitString, init, resolveInitString, setDebug, setInitString, setTmpDir, validate

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

    bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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
  • Constructor Details

    • HistoryPointTask

      public HistoryPointTask()
  • Method Details

    • setHistoryDir

      public void setHistoryDir(File historyDir)
      Sepcify the directory into which the history information will be written.
    • setDate

      public void setDate(String dateString)
      Specify the effective date for this history point.
    • setDateFormat

      public void setDateFormat(String dateFormat)
      Specify the format of the date property. Defaults to the default SimpleDateFormat
      See Also:
    • setSpan

      public void setSpan(org.openclover.core.cfg.Interval span)
      Specify the span to be used for generating this history-point
    • setProperty

      public void setProperty(String property)
      Specifies the property name to hold the name of the generated output file
      Parameters:
      property - the name of the property to hold the filename that was generated
    • addFileSet

      public void addFileSet(org.apache.tools.ant.types.FileSet fileset)
      Support the use of filesets to filter the history point coverage.
    • addTestSources

      public void addTestSources(org.apache.tools.ant.types.FileSet fileset)
    • addTestResults

      public void addTestResults(org.apache.tools.ant.types.FileSet fileset)
    • setIncludeFailedTestCoverage

      public void setIncludeFailedTestCoverage(boolean include)
    • getFilter

      public String getFilter()
    • setFilter

      public void setFilter(String filter)
    • setAlwaysReport

      public void setAlwaysReport(boolean alwaysReport)
    • setOverwrite

      public void setOverwrite(boolean overwrite)
    • setSrcLevel

      public void setSrcLevel(boolean srcLevel)
    • cloverExecute

      public void cloverExecute()
      Specified by:
      cloverExecute in class AbstractCloverTask