[java] Making "project root" detection work in both Buck and Bazel. Actually, in Bazel it's not the project root but the test execution root.
@@ -45,7 +45,7 @@ public static Path locate(String path) {
Path dir = Paths.get(".").toAbsolutePath();
Path pwd = dir;
while (dir != null && !dir.equals(dir.getParent())) {
- Path rakefile = dir.resolve("Rakefile");
+ Path rakefile = dir.resolve("third_party");
if (Files.exists(rakefile)) {
break;
}
