Groovy Documentation

org.ajoberstar.gradle.jacoco.tasks
[Groovy] Class JacocoMerge

java.lang.Object
  org.gradle.api.DefaultTask
      org.ajoberstar.gradle.jacoco.tasks.JacocoBase
          org.ajoberstar.gradle.jacoco.tasks.JacocoMerge

class JacocoMerge
extends JacocoBase

Task to merge multiple execution data files into one.


Property Summary
java.lang.Object destPath

Path to write merged execution data to.

FileCollection executionData

Collection of execution data files to merge.

 
Method Summary
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.

java.io.File getDestFile()

Path to write merged execution daat to.

void merge()

 

Property Detail

destPath

java.lang.Object destPath
Path to write merged execution data to. Defaults to build/jacoco/.exec


executionData

@InputFiles
FileCollection executionData
Collection of execution data files to merge.


 
Method Detail

executionData

void executionData(java.lang.Object... files)
Adds execution data files to be merged.
Parameters:
files - one or more files to merge


executionData

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.
Parameters:
tasks - one or more tasks to merge


executionData

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.
Parameters:
tasks - one or more tasks to merge


getDestFile

@OutputFile
java.io.File getDestFile()
Path to write merged execution daat to.


merge

@TaskAction
void merge()


 

Groovy Documentation