JacocoMerge

API Documentation:JacocoMerge

Task to merge multiple execution data files into one.

Properties

PropertyDescription
destinationFile

File to write merged execution data to.

executionData

Collection of execution data files to merge.

jacocoClasspath

Classpath containing Jacoco classes for use by the task.

Methods

MethodDescription
executionData(files)

Adds execution data files to be merged.

executionData(tasks)

Adds execution data generated by a task to the list of those to merge. Only tasks with a JacocoTaskExtension will be included; all others will be ignored.

executionData(tasks)

Adds execution data generated by the given tasks to the list of those merged. Only tasks with a JacocoTaskExtension will be included; all others will be ignored.

Script blocks

No script blocks

Property details

File destinationFile

File to write merged execution data to.

Default with jacoco plugin:
buildDir/jacoco/task.name.exec

FileCollection executionData

Collection of execution data files to merge.

FileCollection jacocoClasspath

Classpath containing Jacoco classes for use by the task.

Default with jacoco plugin:
project.configurations.jacocoAnt

Method details

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. Only tasks with a JacocoTaskExtension will be included; all others will be ignored.

void executionData(TaskCollection tasks)

Adds execution data generated by the given tasks to the list of those merged. Only tasks with a JacocoTaskExtension will be included; all others will be ignored.