Class JacocoMerge

    • Constructor Detail

      • JacocoMerge

        public JacocoMerge()
    • Method Detail

      • setExecutionData

        public void setExecutionData​(FileCollection executionData)
      • getDestinationFile

        @OutputFile
        public File getDestinationFile()
        File to write merged execution data to.
      • setDestinationFile

        public void setDestinationFile​(File destinationFile)
      • setDestinationFile

        public void setDestinationFile​(Provider<File> destinationFile)
        Set the provider for calculating the destination file.
        Parameters:
        destinationFile - Destination file provider
        Since:
        4.0
      • getAntBuilder

        @Inject
        protected org.gradle.api.internal.project.IsolatedAntBuilder getAntBuilder()
      • merge

        public void merge()
      • executionData

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

        public 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

        public 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