Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, org.gradle.util.Configurable<Task>
JacocoCoverageVerification
, JacocoReport
public abstract class JacocoReportBase extends JacocoBase
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
JacocoReportBase() |
Modifier and Type | Method | Description |
---|---|---|
void |
additionalClassDirs(File... dirs) |
Adds additional class directories to those that will be included in the report.
|
void |
additionalClassDirs(FileCollection dirs) |
Adds additional class directories to those that will be included in the report.
|
void |
additionalSourceDirs(File... dirs) |
Adds additional source directories to be used for any classes included in the report.
|
void |
additionalSourceDirs(FileCollection dirs) |
Adds additional source directories to be used for any classes included in the report.
|
void |
executionData(Object... files) |
Adds execution data files to be used during coverage analysis.
|
void |
executionData(Task... tasks) |
Adds execution data generated by a task to the list of those used during coverage analysis.
|
void |
executionData(TaskCollection tasks) |
Adds execution data generated by the given tasks to the list of those used during coverage analysis.
|
ConfigurableFileCollection |
getAdditionalClassDirs() |
Additional class dirs that coverage data should be reported for.
|
ConfigurableFileCollection |
getAdditionalSourceDirs() |
Additional source dirs for the classes coverage data is being reported for.
|
FileCollection |
getAllClassDirs() |
Gets the class directories that coverage will be reported for.
|
FileCollection |
getAllSourceDirs() |
Gets the source directories for the classes that will be reported on.
|
protected org.gradle.api.internal.project.IsolatedAntBuilder |
getAntBuilder() |
|
protected org.gradle.api.internal.CollectionCallbackActionDecorator |
getCallbackActionDecorator() |
Required for decorating reports container callbacks for tracing user code application.
|
ConfigurableFileCollection |
getClassDirectories() |
Source sets that coverage should be reported for.
|
ConfigurableFileCollection |
getExecutionData() |
Collection of execution data files to analyze.
|
protected org.gradle.internal.reflect.Instantiator |
getInstantiator() |
|
ConfigurableFileCollection |
getSourceDirectories() |
Source sets that coverage should be reported for.
|
void |
sourceSets(SourceSet... sourceSets) |
Adds a source set to the list to be reported on.
|
getJacocoClasspath, setJacocoClasspath
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConvention
@Inject protected org.gradle.internal.reflect.Instantiator getInstantiator()
@Inject protected org.gradle.api.internal.CollectionCallbackActionDecorator getCallbackActionDecorator()
@Inject protected org.gradle.api.internal.project.IsolatedAntBuilder getAntBuilder()
@PathSensitive(NONE) @InputFiles public ConfigurableFileCollection getExecutionData()
@PathSensitive(RELATIVE) @InputFiles public ConfigurableFileCollection getSourceDirectories()
@Classpath public ConfigurableFileCollection getClassDirectories()
@Optional @PathSensitive(RELATIVE) @InputFiles public ConfigurableFileCollection getAdditionalClassDirs()
@Optional @PathSensitive(RELATIVE) @InputFiles public ConfigurableFileCollection getAdditionalSourceDirs()
public void executionData(Object... files)
files
- one or more files to addpublic void executionData(Task... tasks)
JacocoTaskExtension
will be included; all others will be ignored.tasks
- one or more tasks to addpublic void executionData(TaskCollection tasks)
JacocoTaskExtension
will be included; all others will be ignored.tasks
- one or more tasks to add@Internal public FileCollection getAllClassDirs()
@Internal public FileCollection getAllSourceDirs()
getAllClassDirs()
public void sourceSets(SourceSet... sourceSets)
sourceSets
- one or more source sets to report onpublic void additionalClassDirs(File... dirs)
dirs
- one or more directories containing classes to report coverage ofpublic void additionalClassDirs(FileCollection dirs)
dirs
- a FileCollection
of directories containing classes to report coverage ofpublic void additionalSourceDirs(File... dirs)
dirs
- one or more directories containing source files for the classes included in the reportpublic void additionalSourceDirs(FileCollection dirs)
dirs
- a FileCollection
of directories containing source files for the classes included in the report