From a88bd9b0d4644fc9dfc8764777d453d748f0dd3b Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Fri, 11 Oct 2013 20:01:36 -0700 Subject: [PATCH] Fix Jetty server calling buck with custom PATH The PATH used by buck build on the command line should also be used when invoking during reload. This ensures the same Java is available to the compiler. Change-Id: Ib3415539f3022d4f001d902d820059705f2fb5b8 --- .../main/java/com/google/gerrit/pgm/http/jetty/JettyServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/http/jetty/JettyServer.java b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/http/jetty/JettyServer.java index 35df8d9a7d..33ac7b346c 100644 --- a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/http/jetty/JettyServer.java +++ b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/http/jetty/JettyServer.java @@ -593,7 +593,7 @@ public class JettyServer { ProcessBuilder proc = new ProcessBuilder(buck, "build", target) .directory(root) .redirectErrorStream(true); - if (properties.contains("PATH")) { + if (properties.containsKey("PATH")) { proc.environment().put("PATH", properties.getProperty("PATH")); } long start = System.currentTimeMillis();