Interface BuildFileTree

  • All Known Implementing Classes:
    FilesystemBackedBuildFileTree, InMemoryBuildFileTree

    public interface BuildFileTree
    Interface to allow looking up parents and children of build files. E.g. for a directory structure that looks like: foo/BUCK foo/bar/baz/BUCK foo/bar/qux/BUCK

    foo/BUCK is the parent of foo/bar/baz/BUCK and foo/bar/qux/BUCK.

    • Method Detail

      • getBasePathOfAncestorTarget

        Optional<RelPath> getBasePathOfAncestorTarget​(RelPath filePath)
        Returns the base path for a given path. The base path is the nearest directory at or above filePath that contains a build file.
        filePath - the path whose base path to find.
        the base path if there is one.