use of org.gradle.api.internal.tasks.compile.incremental.analyzer.ClassFilesAnalyzer in project gradle by gradle.
the class ClassSetAnalysisUpdater method updateAnalysis.
public void updateAnalysis(JavaCompileSpec spec) {
Timer clock = Timers.startTimer();
Set<File> baseDirs = Sets.newLinkedHashSet();
baseDirs.add(spec.getDestinationDir());
Iterables.addAll(baseDirs, Iterables.filter(spec.getCompileClasspath(), IS_CLASS_DIRECTORY));
ClassFilesAnalyzer analyzer = new ClassFilesAnalyzer(this.analyzer, fileHasher);
for (File baseDir : baseDirs) {
fileOperations.fileTree(baseDir).visit(analyzer);
}
ClassSetAnalysisData data = analyzer.getAnalysis();
stash.put(data);
LOG.info("Class dependency analysis for incremental compilation took {}.", clock.getElapsed());
}
Aggregations