mirror of https://github.com/sbt/sbt.git
It is not always possible to monitor a directory using OS file system events. For example, inotify does not work with nfs. To work around this, I add support for a hybrid FileTreeViewConfig that caches a portion of the file system and monitors it with os file system notification, but that polls a subset of the directories. When we query the view using list or listEntries, we will actually query the file system for the polling directories while we will read from the cache for the remainder. When we are not in a continuous build (~ *), there is no polling of the pollingDirectories but the cache will continue to update the regular directories in the background. When we are in a continuous build, we use a PollingWatchService to poll the pollingDirectories and continue to use the regular repository callbacks for the other directories. I suspect that #4179 may be resolved by adding the directories for which monitoring is not working to the pollingDirectories task. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||