Class JacocoMerge
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.testing.jacoco.tasks.JacocoBase
org.gradle.testing.jacoco.tasks.JacocoMerge
- All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, org.gradle.util.Configurable<Task>
Task to merge multiple execution data files into one.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Task
Task.Namer -
Field Summary
Fields inherited from interface Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutionData(Object... files) Adds execution data files to be merged.voidexecutionData(Task... tasks) Adds execution data generated by a task to the list of those to merge.voidexecutionData(TaskCollection tasks) Adds execution data generated by the given tasks to the list of those merged.protected org.gradle.api.internal.project.IsolatedAntBuilderFile to write merged execution data to.Collection of execution data files to merge.voidmerge()voidsetDestinationFile(File destinationFile) voidsetDestinationFile(Provider<File> destinationFile) Set the provider for calculating the destination file.voidsetExecutionData(FileCollection executionData) Methods inherited from class JacocoBase
getJacocoClasspath, setJacocoClasspathMethods inherited from class DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileMethods inherited from class org.gradle.api.internal.AbstractTask
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
Constructor Details
-
JacocoMerge
public JacocoMerge()
-
-
Method Details
-
getExecutionData
Collection of execution data files to merge. -
setExecutionData
-
getDestinationFile
File to write merged execution data to. -
setDestinationFile
-
setDestinationFile
-
getAntBuilder
@Inject protected org.gradle.api.internal.project.IsolatedAntBuilder getAntBuilder() -
merge
public void merge() -
executionData
Adds execution data files to be merged.- Parameters:
files- one or more files to merge
-
executionData
Adds execution data generated by a task to the list of those to merge. Only tasks with aJacocoTaskExtensionwill be included; all others will be ignored.- Parameters:
tasks- one or more tasks to merge
-
executionData
Adds execution data generated by the given tasks to the list of those merged. Only tasks with aJacocoTaskExtensionwill be included; all others will be ignored.- Parameters:
tasks- one or more tasks to merge
-