Search in sources :

Example 1 with JdkJavaCompilerResult

use of org.gradle.api.internal.tasks.compile.JdkJavaCompilerResult in project gradle by gradle.

the class ClassSetAnalysisUpdater method visitAnnotationProcessingResult.

private void visitAnnotationProcessingResult(JavaCompileSpec spec, WorkResult result, CompilationResultAnalyzer analyzer) {
    if (!spec.getEffectiveAnnotationProcessors().isEmpty()) {
        AnnotationProcessingResult annotationProcessingResult = null;
        if (result instanceof JdkJavaCompilerResult) {
            annotationProcessingResult = ((JdkJavaCompilerResult) result).getAnnotationProcessingResult();
        }
        analyzer.visitAnnotationProcessingResult(annotationProcessingResult);
    }
}
Also used : JdkJavaCompilerResult(org.gradle.api.internal.tasks.compile.JdkJavaCompilerResult) AnnotationProcessingResult(org.gradle.api.internal.tasks.compile.incremental.processing.AnnotationProcessingResult)

Aggregations

JdkJavaCompilerResult (org.gradle.api.internal.tasks.compile.JdkJavaCompilerResult)1 AnnotationProcessingResult (org.gradle.api.internal.tasks.compile.incremental.processing.AnnotationProcessingResult)1