use of org.gradle.internal.watch.registry.FileWatcherRegistry in project gradle by gradle.
the class WatchingVirtualFileSystem method stopWatchingAndInvalidateHierarchy.
private SnapshotHierarchy stopWatchingAndInvalidateHierarchy(SnapshotHierarchy currentRoot) {
if (watchRegistry != null) {
try {
FileWatcherRegistry toBeClosed = watchRegistry;
watchRegistry = null;
toBeClosed.close();
} catch (IOException ex) {
LOGGER.error("Unable to close file watcher registry", ex);
}
}
return currentRoot.empty();
}
Aggregations