Class AntInstrumentationConfig

java.lang.Object
org.openclover.core.cfg.instr.InstrumentationConfig
org.openclover.core.cfg.instr.java.JavaInstrumentationConfig
org.openclover.ant.tasks.AntInstrumentationConfig
All Implemented Interfaces:
org.openclover.core.io.tags.TaggedPersistent

public class AntInstrumentationConfig extends org.openclover.core.cfg.instr.java.JavaInstrumentationConfig
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Ant enumerated attribute subclass for the Clover instrumentation level policy
    static class 
    Ant Enumerated Attribute subclass for the clover flush policy
    static class 
    Ant Enumerated Attribute subclass for the clover flush policy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<org.apache.tools.ant.types.FileSet>
     
    protected List<TestSourceSet>
     

    Fields inherited from class org.openclover.core.cfg.instr.java.JavaInstrumentationConfig

    JAVA_LANG_PREFIX

    Fields inherited from class org.openclover.core.cfg.instr.InstrumentationConfig

    DEFAULT_DB_DIR, DEFAULT_DB_FILE, DEFAULT_FLUSHING, DIRECTED_FLUSH_POLICY, DIRECTED_FLUSHING, FLUSH_VALUES, INTERVAL_FLUSH_POLICY, INTERVAL_FLUSHING, THREADED_FLUSH_POLICY, THREADED_FLUSHING
  • Constructor Summary

    Constructors
    Constructor
    Description
    AntInstrumentationConfig(org.apache.tools.ant.Project project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addConfiguredFileSet(org.apache.tools.ant.types.FileSet set)
     
    void
     
    void
     
     
    getFrom(org.apache.tools.ant.Project project)
     
     
    List<org.apache.tools.ant.types.FileSet>
     
    org.apache.tools.ant.types.PatternSet
     
     
    boolean
     
    boolean
     
    Overridden method that resolves the init string against the project's basedir.
    void
    setCompilerDelegate(String compilerDelegate)
     
    void
    setGroverJar(File groverJar)
     
    void
    setIn(org.apache.tools.ant.Project project)
     
    void
    setInstrPattern(org.apache.tools.ant.types.PatternSet filesPattern)
     
    void
    setInstrumentLambda(String instrumentLambda)
    Extra setter so that we can call it from Grails' BuildConfig
    void
    setPreserve(boolean preserve)
     
    void
    setSkipGroverJar(boolean skip)
     

    Methods inherited from class org.openclover.core.cfg.instr.java.JavaInstrumentationConfig

    addSourceFile, getDestDir, getInstrFileExtension, getInstrumentLambda, getJavaLangPrefix, getSourceDir, getSourceFiles, getSourceLevel, setDestDir, setFullyQualifyJavaLang, setInstrFileExtension, setInstrumentLambda, setSourceDir, setSourceLevel, validate

    Methods inherited from class org.openclover.core.cfg.instr.InstrumentationConfig

    addMethodContext, addProfile, addStatementContext, createDefaultInitStringDir, getClassNotFoundMsg, getDefaultBaseDir, getDistributedConfigString, getEncoding, getFlushInterval, getFlushPolicy, getFlushPolicyString, getIncludedFiles, getInitString, getInstrLevel, getMethodContexts, getProfiles, getProjectName, getRegistryFile, getRuntimeInitString, getStatementContexts, getTestDetector, getTmpDir, getValidationFailureReason, hasCustomContexts, isEnabled, isIntervalBasedFlushing, isRecordTestResults, isRelative, isReportInitErrors, isSliceRecording, isStatementInstrEnabled, isTestDetector, loadFromStream, read, saveToFile, setClassNotFoundMsg, setDefaultBaseDir, setDistributedConfig, setEnabled, setEncoding, setFlushInterval, setFlushPolicy, setFlushPolicyFromString, setIncludedFiles, setInitstring, setInstrLevel, setInstrLevelStrategy, setProjectName, setRecordTestResults, setRegistryFile, setRelative, setReportInitErrors, setSliceRecording, setTestDetector, setTmpDir, setValidationFailureReason, write

    Methods inherited from class java.lang.Object

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

    • instrFilesets

      protected transient List<org.apache.tools.ant.types.FileSet> instrFilesets
    • testSources

      protected transient List<TestSourceSet> testSources
  • Constructor Details

    • AntInstrumentationConfig

      public AntInstrumentationConfig(org.apache.tools.ant.Project project)
  • Method Details

    • resolveInitString

      public String resolveInitString()
      Overridden method that resolves the init string against the project's basedir.
      Overrides:
      resolveInitString in class org.openclover.core.cfg.instr.InstrumentationConfig
      Returns:
      resolved initstring
    • isPreserve

      public boolean isPreserve()
    • setPreserve

      public void setPreserve(boolean preserve)
    • getCompilerDelegate

      public String getCompilerDelegate()
    • setCompilerDelegate

      public void setCompilerDelegate(String compilerDelegate)
    • getFrom

      @Nullable public static AntInstrumentationConfig getFrom(@NotNull org.apache.tools.ant.Project project)
    • setIn

      public void setIn(org.apache.tools.ant.Project project)
    • addConfiguredFileSet

      public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet set)
    • addConfiguredTestSources

      public void addConfiguredTestSources(TestSourceSet testSourceSet)
    • getInstrFilesets

      public List<org.apache.tools.ant.types.FileSet> getInstrFilesets()
    • getTestSources

      public List<TestSourceSet> getTestSources()
    • setInstrumentLambda

      public void setInstrumentLambda(String instrumentLambda)
      Extra setter so that we can call it from Grails' BuildConfig
    • setInstrPattern

      public void setInstrPattern(org.apache.tools.ant.types.PatternSet filesPattern)
    • getInstrPattern

      public org.apache.tools.ant.types.PatternSet getInstrPattern()
    • setGroverJar

      public void setGroverJar(File groverJar)
    • getGroverJar

      public File getGroverJar()
    • setSkipGroverJar

      public void setSkipGroverJar(boolean skip)
    • isSkipGroverJar

      public boolean isSkipGroverJar()
    • configureIncludedFiles

      public void configureIncludedFiles()