Skip to content

Commit

Permalink
[java] Making "project root" detection work in both Buck and Bazel. A…
Browse files Browse the repository at this point in the history
…ctually, in Bazel it's not the project root but the test execution root.
  • Loading branch information
barancev committed Nov 23, 2018
1 parent e14ab1f commit dc4fdbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dc4fdbf

Please sign in to comment.