@CacheableTask public class JacocoMerge extends JacocoBase
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
JacocoMerge() |
Modifier and Type | Method | Description |
---|---|---|
void |
executionData(java.lang.Object... files) |
Adds execution data files to be merged.
|
void |
executionData(Task... tasks) |
Adds execution data generated by a task to the list of those to merge.
|
void |
executionData(TaskCollection tasks) |
Adds execution data generated by the given tasks to the list of those merged.
|
protected org.gradle.api.internal.project.IsolatedAntBuilder |
getAntBuilder() |
|
java.io.File |
getDestinationFile() |
File to write merged execution data to.
|
FileCollection |
getExecutionData() |
Collection of execution data files to merge.
|
void |
merge() |
|
void |
setDestinationFile(java.io.File destinationFile) |
|
void |
setDestinationFile(Provider<java.io.File> destinationFile) |
Set the provider for calculating the destination file.
|
void |
setExecutionData(FileCollection executionData) |
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
getJacocoClasspath, setJacocoClasspath
@PathSensitive(RELATIVE) @InputFiles public FileCollection getExecutionData()
public void setExecutionData(FileCollection executionData)
@OutputFile public java.io.File getDestinationFile()
public void setDestinationFile(java.io.File destinationFile)
@Incubating public void setDestinationFile(Provider<java.io.File> destinationFile)
destinationFile
- Destination file provider@Inject protected org.gradle.api.internal.project.IsolatedAntBuilder getAntBuilder()
public void merge()
public void executionData(java.lang.Object... files)
files
- one or more files to mergepublic void executionData(Task... tasks)
JacocoTaskExtension
will be included; all others will be ignored.tasks
- one or more tasks to mergepublic void executionData(TaskCollection tasks)
JacocoTaskExtension
will be included; all others will be ignored.tasks
- one or more tasks to merge