public class InMemoryBuildFileTree extends Object implements BuildFileTree
Constructor and Description |
---|
InMemoryBuildFileTree(Collection<RelPath> basePaths) |
InMemoryBuildFileTree(Iterable<BuildTarget> targets,
ProjectFilesystem filesystem)
Creates an InMemoryBuildFileTree from the base paths in the given BuildTargetPaths.
|
Modifier and Type | Method and Description |
---|---|
Optional<RelPath> |
getBasePathOfAncestorTarget(RelPath filePath)
Returns the base path for a given path.
|
public InMemoryBuildFileTree(Iterable<BuildTarget> targets, ProjectFilesystem filesystem)
targets
- BuildTargetPaths to get base paths from.public InMemoryBuildFileTree(Collection<RelPath> basePaths)
public Optional<RelPath> getBasePathOfAncestorTarget(RelPath filePath)
BuildFileTree
getBasePathOfAncestorTarget
in interface BuildFileTree
filePath
- the path whose base path to find.