Search in sources :

Example 1 with CompilationResultAnalyzer

use of org.gradle.api.internal.tasks.compile.incremental.analyzer.CompilationResultAnalyzer in project gradle by gradle.

the class ClassSetAnalysisUpdater method updateAnalysis.

public void updateAnalysis(JavaCompileSpec spec, WorkResult result) {
    if (result instanceof RecompilationNotNecessary) {
        return;
    }
    Timer clock = Time.startTimer();
    CompilationResultAnalyzer analyzer = new CompilationResultAnalyzer(this.analyzer, fileHasher);
    visitAnnotationProcessingResult(spec, result, analyzer);
    visitClassFiles(spec, analyzer);
    ClassSetAnalysisData data = analyzer.getAnalysis();
    stash.put(data);
    LOG.info("Class dependency analysis for incremental compilation took {}.", clock.getElapsed());
}
Also used : Timer(org.gradle.internal.time.Timer) ClassSetAnalysisData(org.gradle.api.internal.tasks.compile.incremental.deps.ClassSetAnalysisData) CompilationResultAnalyzer(org.gradle.api.internal.tasks.compile.incremental.analyzer.CompilationResultAnalyzer)

Aggregations

CompilationResultAnalyzer (org.gradle.api.internal.tasks.compile.incremental.analyzer.CompilationResultAnalyzer)1 ClassSetAnalysisData (org.gradle.api.internal.tasks.compile.incremental.deps.ClassSetAnalysisData)1 Timer (org.gradle.internal.time.Timer)1