public class CloverSetupTask extends AbstractInstrTask
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_COMPILER
Standard Ant property for compiler selection
|
static String |
CLOVER_ADAPTER
The Clover compiler adapter class
|
optimizationOnly
config, debug
Constructor and Description |
---|
CloverSetupTask() |
Modifier and Type | Method and Description |
---|---|
void |
addFiles(org.apache.tools.ant.types.PatternSet filesPattern)
Set the pattern set for the files to be included or
excluded from clovering
|
void |
cloverExecute()
Setup Clover to run.
|
void |
setCloverCompiler(String cloverCompiler)
Set the underlying compiler that clover will use to compile the code.
|
void |
setEnabled(boolean enabled)
Set the flag which controls whether clover is enabled
or not.
|
void |
setGroverJar(File groverJar)
Sets a fixed name and location for the temporary grover.jar artifact which is being
used for compilation of Groovy code.
|
void |
setPreserve(boolean preserve)
Flag to indicate whether the instrumented source should be saved.
|
void |
setSkipGroverJar(boolean skip)
If set to true, then skips generation of grover.jar artifact during setup.
|
addConfiguredDistributedCoverage, addConfiguredFileSet, addConfiguredProfiles, addConfiguredTestSources, addMethodContext, addStatementContext, getRuntimeInitString, setEncoding, setFlushInterval, setFlushPolicy, setFullyQualifyJavaLang, setInstrumentation, setInstrumentationLevel, setInstrumentLambda, setOptimizationOnly, setRecordTestResults, setRelative, setReportInitErrors, setSource, validate
execute, getInitString, init, resolveInitString, setDebug, setInitString, setTmpDir
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final String BUILD_COMPILER
public static final String CLOVER_ADAPTER
public void setEnabled(boolean enabled)
enabled
- if true clover will instrument files as they are compiled.public void setCloverCompiler(String cloverCompiler)
cloverCompiler
- the compiler spec - this is the same as the
standard Ant build.compiler
value.public void setPreserve(boolean preserve)
preserve
- if true the instrumented code is kept.public void setGroverJar(File groverJar)
groverJar
- path where grover.jar will be writtenpublic void setSkipGroverJar(boolean skip)
skip
- if true then grover.jar will not be created and Groovy code not instrumentedpublic void addFiles(org.apache.tools.ant.types.PatternSet filesPattern)
filesPattern
- the patternset to usepublic void cloverExecute()
cloverExecute
in class AbstractCloverTask
Copyright © 2023 OpenClover.org. All rights reserved.