Search in sources :

Example 1 with AntJacocoReport

use of org.gradle.internal.jacoco.AntJacocoReport in project gradle by gradle.

the class JacocoReport method generate.

@TaskAction
public void generate() {
    final Spec<File> fileExistsSpec = new Spec<File>() {

        @Override
        public boolean isSatisfiedBy(File file) {
            return file.exists();
        }
    };
    new AntJacocoReport(getAntBuilder()).execute(getJacocoClasspath(), getProject().getName(), getAllClassDirs().filter(fileExistsSpec), getAllSourceDirs().filter(fileExistsSpec), getExecutionData(), getReports());
}
Also used : AntJacocoReport(org.gradle.internal.jacoco.AntJacocoReport) Spec(org.gradle.api.specs.Spec) File(java.io.File) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

File (java.io.File)1 Spec (org.gradle.api.specs.Spec)1 TaskAction (org.gradle.api.tasks.TaskAction)1 AntJacocoReport (org.gradle.internal.jacoco.AntJacocoReport)1