[java] Fixing working directory for buck build
@@ -67,6 +67,7 @@ public Path go() throws IOException {
ImmutableList<String> command = builder.build();
CommandLine commandLine = new CommandLine(command.toArray(new String[0]));
+ commandLine.setWorkingDirectory(projectRoot.toAbsolutePath().toString());
commandLine.copyOutputTo(System.err);
commandLine.execute();
@@ -84,6 +85,7 @@ private Path findOutput(Path projectRoot) throws IOException {
ImmutableList<String> command = builder.build();
CommandLine commandLine = new CommandLine(command.toArray(new String[command.size()]));
+ commandLine.setWorkingDirectory(projectRoot.toAbsolutePath().toString());
commandLine.copyOutputTo(System.err);
commandLine.execute();
