aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-17 12:03:02 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-18 11:28:00 +0200
commit70dabb8a6d7261185e3f9895361e1ef72559fdbd (patch)
tree5213b00aace1907f29c1d9ad73e37fe4cac4472a /server
parenta71ca29b0cdce94b01f48e9b1a281f222c5edbe2 (diff)
downloadsonarqube-70dabb8a6d7261185e3f9895361e1ef72559fdbd.tar.gz
sonarqube-70dabb8a6d7261185e3f9895361e1ef72559fdbd.zip
SONAR-5408 - Set SONAR_HOME from ProcessWrapper for child Process
Diffstat (limited to 'server')
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
index 3a9bb4f33ac..42fcd51de85 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
@@ -150,6 +150,7 @@ public class ProcessWrapper {
StringUtils.join(classPath, ":"),
className);
processBuilder.environment().putAll(properties);
+ processBuilder.environment().put(Process.SONAR_HOME, workDir);
processBuilder.environment().put(Process.NAME_PROPERTY, this.getName());
processBuilder.environment().put(Process.PORT_PROPERTY, Integer.toString(port));