Package org.openclover.ant.tasks
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
-
Field Summary
FieldsFields inherited from class org.openclover.ant.tasks.AbstractCloverTask
config, debugFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredDistributedCoverage(org.openclover.runtime.remote.DistributedConfig distConfig) voidaddConfiguredFileSet(org.apache.tools.ant.types.FileSet set) voidaddConfiguredProfiles(AntCloverProfiles profiles) Setter for Ant's:voidvoidaddMethodContext(org.openclover.core.cfg.instr.MethodContextDef context) voidaddStatementContext(org.openclover.core.cfg.instr.StatementContextDef context) voidsetEncoding(String encoding) voidsetFlushInterval(int flushInterval) Controls the flush intervalu for interval-based flushing.voidsetFlushPolicy(AntInstrumentationConfig.FlushPolicy flushPolicy) Set the flush policy which controls when Clover will flush coverage data to the clover database.voidsetFullyQualifyJavaLang(boolean fullyQualify) voidsetInstrumentationLevel(AntInstrumentationConfig.EnumInstrumentationLevel instrumentationLevel) voidsetInstrumentLambda(String level) Set how lambda expressions (Java8) shall be instrumented.voidsetOptimizationOnly(boolean optimizationOnly) Optimization only implies method level instrumentationvoidsetRecordTestResults(boolean record) voidsetRelative(boolean relative) Flag to indicate whether the initstring should be treated as a relative pathvoidsetReportInitErrors(boolean reportInitErrors) voidset the default source level to process files atbooleanvalidate()Methods inherited from class org.openclover.ant.tasks.AbstractCloverTask
cloverExecute, execute, getInitString, init, resolveInitString, setDebug, setInitString, setTmpDirMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
optimizationOnly
protected boolean optimizationOnly
-
-
Constructor Details
-
AbstractInstrTask
public AbstractInstrTask()
-
-
Method Details
-
setReportInitErrors
public void setReportInitErrors(boolean reportInitErrors) -
setSource
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
Setter for Ant's:<clover-setup|clover-instr> <profiles> ... </profiles> </clover-setup|clover-instr> -
getRuntimeInitString
-
setEncoding
-
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
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
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
-
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:
validatein classAbstractCloverTask
-