Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, org.gradle.util.Configurable<Task>
@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(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() |
|
File |
getDestinationFile() |
File to write merged execution data to.
|
FileCollection |
getExecutionData() |
Collection of execution data files to merge.
|
void |
merge() |
|
void |
setDestinationFile(File destinationFile) |
|
void |
setDestinationFile(Provider<File> destinationFile) |
Set the provider for calculating the destination file.
|
void |
setExecutionData(FileCollection executionData) |
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
@PathSensitive(RELATIVE) @InputFiles public FileCollection getExecutionData()
public void setExecutionData(FileCollection executionData)
@OutputFile public File getDestinationFile()
public void setDestinationFile(File destinationFile)
public void setDestinationFile(Provider<File> destinationFile)
destinationFile
- Destination file provider@Inject protected org.gradle.api.internal.project.IsolatedAntBuilder getAntBuilder()
public void merge()
public void executionData(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