use of org.gradle.api.internal.tasks.compile.incremental.deps.ClassSetAnalysisData in project gradle by gradle.
the class IncrementalResultStoringCompiler method storeResult.
private void storeResult(JavaCompileSpec spec, WorkResult result) {
ClassSetAnalysisData outputSnapshot = classpathSnapshotter.analyzeOutputFolder(spec.getDestinationDir());
ClassSetAnalysisData classpathSnapshot = classpathSnapshotter.getClasspathSnapshot(Iterables.concat(spec.getCompileClasspath(), spec.getModulePath()));
AnnotationProcessingData annotationProcessingData = getAnnotationProcessingData(spec, result);
CompilerApiData compilerApiData = getCompilerApiData(spec, result);
ClassSetAnalysisData minimizedClasspathSnapshot = classpathSnapshot.reduceToTypesAffecting(outputSnapshot, compilerApiData);
PreviousCompilationData data = new PreviousCompilationData(outputSnapshot, annotationProcessingData, minimizedClasspathSnapshot, compilerApiData);
File previousCompilationDataFile = Objects.requireNonNull(spec.getCompileOptions().getPreviousCompilationDataFile());
previousCompilationAccess.writePreviousCompilationData(data, previousCompilationDataFile);
}
use of org.gradle.api.internal.tasks.compile.incremental.deps.ClassSetAnalysisData in project gradle by gradle.
the class CurrentCompilationAccess method analyzeOutputFolder.
public ClassSetAnalysisData analyzeOutputFolder(File outputFolder) {
Timer clock = Time.startTimer();
ClassSetAnalysisData snapshot = classSetAnalyzer.analyzeOutputFolder(outputFolder);
LOG.info("Class dependency analysis for incremental compilation took {}.", clock.getElapsed());
return snapshot;
}
Aggregations