use of org.gradle.api.internal.file.collections.MinimalFileTree in project gradle by gradle.
the class SyncCopyActionDecorator method execute.
@Override
public WorkResult execute(final CopyActionProcessingStream stream) {
final Set<RelativePath> visited = new HashSet<>();
WorkResult didWork = delegate.execute(action -> stream.process(details -> {
visited.add(details.getRelativePath());
action.processFile(details);
}));
SyncCopyActionDecoratorFileVisitor fileVisitor = new SyncCopyActionDecoratorFileVisitor(visited, preserveSpec, deleter);
MinimalFileTree walker = directoryFileTreeFactory.create(baseDestDir).postfix();
walker.visit(fileVisitor);
visited.clear();
return WorkResults.didWork(didWork.getDidWork() || fileVisitor.didWork);
}
Aggregations