Class AbstractInstrTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.openclover.ant.tasks.AbstractCloverTask
org.openclover.ant.tasks.AbstractInstrTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CloverInstrTask, CloverSetupTask

public abstract class AbstractInstrTask extends AbstractCloverTask
  • Field Details

    • optimizationOnly

      protected boolean optimizationOnly
  • Constructor Details

    • AbstractInstrTask

      public AbstractInstrTask()
  • Method Details

    • setReportInitErrors

      public void setReportInitErrors(boolean reportInitErrors)
    • setSource

      public void setSource(String source)
      set the default source level to process files at
      Parameters:
      source - the src level - e.g. "8", "11", "17"
    • setFullyQualifyJavaLang

      public void setFullyQualifyJavaLang(boolean fullyQualify)
    • setRecordTestResults

      public void setRecordTestResults(boolean record)
    • addConfiguredDistributedCoverage

      public void addConfiguredDistributedCoverage(org.openclover.runtime.remote.DistributedConfig distConfig)
    • addConfiguredProfiles

      public void addConfiguredProfiles(AntCloverProfiles profiles)
      Setter for Ant's:
           <clover-setup|clover-instr>
               <profiles> ... </profiles>
           </clover-setup|clover-instr>
       
    • getRuntimeInitString

      public String getRuntimeInitString()
    • setEncoding

      public void setEncoding(String encoding)
    • setRelative

      public void setRelative(boolean relative)
      Flag to indicate whether the initstring should be treated as a relative path
      Parameters:
      relative - if true, the initstring is treated as a relative path
    • setFlushInterval

      public void setFlushInterval(int flushInterval)
      Controls the flush intervalu for interval-based flushing.
      Parameters:
      flushInterval - flush interval in milliseconds.
    • setFlushPolicy

      public void setFlushPolicy(AntInstrumentationConfig.FlushPolicy flushPolicy)
      Set the flush policy which controls when Clover will flush coverage data to the clover database.
      Parameters:
      flushPolicy - the flush policy to use.
    • setInstrumentationLevel

      public void setInstrumentationLevel(AntInstrumentationConfig.EnumInstrumentationLevel instrumentationLevel)
    • setInstrumentLambda

      public void setInstrumentLambda(String level)
      Set how lambda expressions (Java8) shall be instrumented.
      Parameters:
      level - one of: "none, expression, block, all"
    • setOptimizationOnly

      public void setOptimizationOnly(boolean optimizationOnly)
      Optimization only implies method level instrumentation
    • addConfiguredFileSet

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

      public void addConfiguredTestSources(TestSourceSet ts)
    • addMethodContext

      public void addMethodContext(org.openclover.core.cfg.instr.MethodContextDef context)
    • addStatementContext

      public void addStatementContext(org.openclover.core.cfg.instr.StatementContextDef context)
    • validate

      public boolean validate()
      Overrides:
      validate in class AbstractCloverTask