Package: org.gradle.testing.jacoco.tasks

## [Groovy] Class JacocoMerge

- org.gradle.testing.jacoco.tasks.JacocoMerge

- Task to merge multiple execution data files into one.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `File` | `destinationFile` File to write merged execution data to.
    `FileCollection` | `executionData` Collection of execution data files to merge.

  - ### Methods Summary

    Methods
    Type | Name and 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 IsolatedAntBuilder` | `getAntBuilder()`
    `void` | `merge()`

- - ### Property Detail

    - #### @OutputFile File destinationFile

      File to write merged execution data to.

    - #### @InputFiles FileCollection executionData

      Collection of execution data files to merge.

  - ### Method Detail

    - #### void executionData(Object... files)

      Adds execution data files to be merged.

      Parameters:
        `files` - one or more files to merge

    - #### 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

    - #### 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

    - #### @Inject protected IsolatedAntBuilder getAntBuilder()

    - #### @TaskAction void merge()