use of org.gradle.api.internal.project.taskfactory.FileSnapshottingPropertyAnnotationHandler in project gradle by gradle.
the class TaskExecutionServices method createFileCollectionSnapshotterRegistry.
FileCollectionSnapshotterRegistry createFileCollectionSnapshotterRegistry(ServiceRegistry serviceRegistry) {
List<FileSnapshottingPropertyAnnotationHandler> handlers = serviceRegistry.getAll(FileSnapshottingPropertyAnnotationHandler.class);
ImmutableList.Builder<FileCollectionSnapshotter> snapshotters = ImmutableList.builder();
snapshotters.add(serviceRegistry.get(GenericFileCollectionSnapshotter.class));
for (FileSnapshottingPropertyAnnotationHandler handler : handlers) {
snapshotters.add(serviceRegistry.get(handler.getSnapshotterType()));
}
return new DefaultFileCollectionSnapshotterRegistry(snapshotters.build());
}
Aggregations