Class TestSourceSet

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.AbstractFileSet
org.apache.tools.ant.types.FileSet
org.openclover.ant.tasks.TestSourceSet
All Implemented Interfaces:
Cloneable, Iterable<org.apache.tools.ant.types.Resource>, org.apache.tools.ant.types.ResourceCollection, org.apache.tools.ant.types.selectors.SelectorContainer, org.openclover.core.instr.tests.TestSourceMatcher, org.openclover.core.io.tags.TaggedPersistent

public class TestSourceSet extends org.apache.tools.ant.types.FileSet implements org.openclover.core.instr.tests.TestSourceMatcher
  • Field Summary

    Fields inherited from class org.apache.tools.ant.types.DataType

    checked, ref

    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
    addConfiguredAnd(org.openclover.core.spec.instr.test.AndSpec and)
     
    void
    addConfiguredAndConditions(org.openclover.core.spec.instr.test.AndSpec and)
     
    void
    addConfiguredOr(org.openclover.core.spec.instr.test.OrSpec or)
     
    void
    addConfiguredOrConditions(org.openclover.core.spec.instr.test.OrSpec or)
     
    void
    addConfiguredTestClass(org.openclover.core.spec.instr.test.TestClassSpec testClassSpec)
     
    org.openclover.core.instr.tests.TestDetector
     
     
     
    boolean
     
    boolean
     
    void
    setEnabled(boolean enabled)
     
     
    void
     

    Methods inherited from class org.apache.tools.ant.types.FileSet

    clone, getRef, isFilesystemOnly, iterator, size

    Methods inherited from class org.apache.tools.ant.types.AbstractFileSet

    add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addExecutable, addFilename, addMajority, addModified, addNone, addNot, addOr, addOwnedBy, addPosixGroup, addPosixPermissions, addPresent, addReadable, addSelector, addSize, addSymlink, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, dieOnCircularReference, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getDirectoryScanner, getErrorOnMissingDir, getMaxLevelsOfSymlinks, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setRefid, setupDirectoryScanner, setupDirectoryScanner

    Methods inherited from class org.apache.tools.ant.types.DataType

    checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes

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

    getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.apache.tools.ant.types.ResourceCollection

    isEmpty, stream

    Methods inherited from interface org.openclover.core.instr.tests.TestSourceMatcher

    write
  • Constructor Details

    • TestSourceSet

      public TestSourceSet()
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • isEnabled

      public boolean isEnabled()
    • addConfiguredTestClass

      public void addConfiguredTestClass(org.openclover.core.spec.instr.test.TestClassSpec testClassSpec)
    • addConfiguredOr

      public void addConfiguredOr(org.openclover.core.spec.instr.test.OrSpec or)
    • addConfiguredOrConditions

      public void addConfiguredOrConditions(org.openclover.core.spec.instr.test.OrSpec or)
    • addConfiguredAnd

      public void addConfiguredAnd(org.openclover.core.spec.instr.test.AndSpec and)
    • addConfiguredAndConditions

      public void addConfiguredAndConditions(org.openclover.core.spec.instr.test.AndSpec and)
    • validate

      public void validate() throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • getIncludedFiles

      public Set<File> getIncludedFiles()
    • getExcludedFiles

      public Set<File> getExcludedFiles()
    • matchesFile

      public boolean matchesFile(File f)
      Specified by:
      matchesFile in interface org.openclover.core.instr.tests.TestSourceMatcher
    • getDetector

      public org.openclover.core.instr.tests.TestDetector getDetector()
      Specified by:
      getDetector in interface org.openclover.core.instr.tests.TestSourceMatcher
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.tools.ant.types.AbstractFileSet