Package org.openclover.ant.tasks
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 ClassesModifier and TypeClassDescriptionstatic classAnt enumerated attribute subclass for the Clover instrumentation level policystatic classAnt Enumerated Attribute subclass for the clover flush policystatic classAnt Enumerated Attribute subclass for the clover flush policy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.apache.tools.ant.types.FileSet> protected List<TestSourceSet> Fields inherited from class org.openclover.core.cfg.instr.java.JavaInstrumentationConfig
JAVA_LANG_PREFIXFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredFileSet(org.apache.tools.ant.types.FileSet set) voidaddConfiguredTestSources(TestSourceSet testSourceSet) voidstatic AntInstrumentationConfiggetFrom(org.apache.tools.ant.Project project) List<org.apache.tools.ant.types.FileSet> org.apache.tools.ant.types.PatternSetbooleanbooleanOverridden method that resolves the init string against the project's basedir.voidsetCompilerDelegate(String compilerDelegate) voidsetGroverJar(File groverJar) voidsetIn(org.apache.tools.ant.Project project) voidsetInstrPattern(org.apache.tools.ant.types.PatternSet filesPattern) voidsetInstrumentLambda(String instrumentLambda) Extra setter so that we can call it from Grails' BuildConfigvoidsetPreserve(boolean preserve) voidsetSkipGroverJar(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, validateMethods 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
-
Field Details
-
instrFilesets
-
testSources
-
-
Constructor Details
-
AntInstrumentationConfig
public AntInstrumentationConfig(org.apache.tools.ant.Project project)
-
-
Method Details
-
resolveInitString
Overridden method that resolves the init string against the project's basedir.- Overrides:
resolveInitStringin classorg.openclover.core.cfg.instr.InstrumentationConfig- Returns:
- resolved initstring
-
isPreserve
public boolean isPreserve() -
setPreserve
public void setPreserve(boolean preserve) -
getCompilerDelegate
-
setCompilerDelegate
-
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
-
getInstrFilesets
-
getTestSources
-
setInstrumentLambda
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
-
getGroverJar
-
setSkipGroverJar
public void setSkipGroverJar(boolean skip) -
isSkipGroverJar
public boolean isSkipGroverJar() -
configureIncludedFiles
public void configureIncludedFiles()
-