public class NativeGlobber extends Object implements Globber
Since this is a simple implementation it does not support caching and other smarts.
Modifier and Type | Method and Description |
---|---|
static NativeGlobber |
create(com.google.devtools.build.lib.vfs.Path basePath)
Factory method for creating
NativeGlobber instances. |
Set<String> |
run(Collection<String> include,
Collection<String> exclude,
boolean excludeDirectories) |
public Set<String> run(Collection<String> include, Collection<String> exclude, boolean excludeDirectories) throws IOException
run
in interface Globber
include
- File patterns that should be included in the resulting set.exclude
- File patterns that should be excluded from the resulting set.excludeDirectories
- Whether directories should be excluded from the resulting set.IOException
public static NativeGlobber create(com.google.devtools.build.lib.vfs.Path basePath)
NativeGlobber
instances.basePath
- The base path relative to which paths matching glob patterns will be resolved.