public abstract class AbstractInstrTask extends AbstractCloverTask
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
optimizationOnly |
config, debug| Constructor and Description |
|---|
AbstractInstrTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredDistributedCoverage(DistributedConfig distConfig) |
void |
addConfiguredFileSet(org.apache.tools.ant.types.FileSet set) |
void |
addConfiguredProfiles(AntCloverProfiles profiles)
Setter for Ant's:
|
void |
addConfiguredTestSources(TestSourceSet ts) |
void |
addMethodContext(MethodContextDef context) |
void |
addStatementContext(StatementContextDef context) |
String |
getRuntimeInitString() |
void |
setEncoding(String encoding) |
void |
setFlushInterval(int flushInterval)
Controls the flush intervalu for interval-based flushing.
|
void |
setFlushPolicy(AntInstrumentationConfig.FlushPolicy flushPolicy)
Set the flush policy which controls when Clover will flush coverage data to the clover database.
|
void |
setFullyQualifyJavaLang(boolean fullyQualify) |
void |
setInstrumentation(AntInstrumentationConfig.Instrumentation instrumentation)
Set the instrumentation strategy
|
void |
setInstrumentationLevel(AntInstrumentationConfig.EnumInstrumentationLevel instrumentationLevel) |
void |
setInstrumentLambda(String level)
Set how lambda expressions (Java8) shall be instrumented.
|
void |
setOptimizationOnly(boolean optimizationOnly)
Optimization only implies method level instrumentation
|
void |
setRecordTestResults(boolean record) |
void |
setRelative(boolean relative)
Flag to indicate whether the initstring should be treated as a relative path
|
void |
setReportInitErrors(boolean reportInitErrors) |
void |
setSource(String source)
set the default source level to process files at
|
boolean |
validate() |
cloverExecute, execute, getInitString, init, resolveInitString, setDebug, setInitString, setTmpDirbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setReportInitErrors(boolean reportInitErrors)
public void setSource(String source)
source - the src level - e.g. "1.7", "9"public void setFullyQualifyJavaLang(boolean fullyQualify)
public void setRecordTestResults(boolean record)
public void addConfiguredDistributedCoverage(DistributedConfig distConfig)
public void addConfiguredProfiles(AntCloverProfiles profiles)
<clover-setup|clover-instr>
<profiles> ... </profiles>
</clover-setup|clover-instr>
public String getRuntimeInitString()
public void setEncoding(String encoding)
public void setRelative(boolean relative)
relative - if true, the initstring is treated as a relative pathpublic void setFlushInterval(int flushInterval)
flushInterval - flush interval in milliseconds.public void setFlushPolicy(AntInstrumentationConfig.FlushPolicy flushPolicy)
flushPolicy - the flush policy to use.public void setInstrumentation(AntInstrumentationConfig.Instrumentation instrumentation)
instrumentation - strategy to use.public void setInstrumentationLevel(AntInstrumentationConfig.EnumInstrumentationLevel instrumentationLevel)
public void setInstrumentLambda(String level)
level - one of: "none, expression, block, all"public void setOptimizationOnly(boolean optimizationOnly)
public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet set)
public void addConfiguredTestSources(TestSourceSet ts)
public void addMethodContext(MethodContextDef context)
public void addStatementContext(StatementContextDef context)
public boolean validate()
validate in class AbstractCloverTaskCopyright © 2024 OpenClover.org. All rights reserved.