public class HybridGlobberFactory extends Object implements GlobberFactory
HybridGlobber
.Modifier and Type | Method and Description |
---|---|
Globber |
create(com.google.devtools.build.lib.vfs.Path basePath) |
Optional<com.facebook.buck.skylark.io.impl.HybridGlobberFactory.WatchProjectResult> |
getWatchmanRelativizedFinalPath(com.google.devtools.build.lib.vfs.Path filePath)
Ask Watchman to get the final path for a file, following links (and ReparsePoints on Windows).
|
static HybridGlobberFactory |
using(WatchmanClient watchmanClient,
SyncCookieState syncCookieState,
Path projectRoot,
com.google.common.collect.ImmutableMap<AbsPath,ProjectWatch> projectWatches) |
public Optional<com.facebook.buck.skylark.io.impl.HybridGlobberFactory.WatchProjectResult> getWatchmanRelativizedFinalPath(com.google.devtools.build.lib.vfs.Path filePath) throws IOException, InterruptedException
filePath
- the path for which we want to get the final path.filePath
, if Watchman is possible to calculate
and Optional.empty()
otherwise.IOException
InterruptedException
public Globber create(com.google.devtools.build.lib.vfs.Path basePath)
create
in interface GlobberFactory
public static HybridGlobberFactory using(WatchmanClient watchmanClient, SyncCookieState syncCookieState, Path projectRoot, com.google.common.collect.ImmutableMap<AbsPath,ProjectWatch> projectWatches)