diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-17 12:03:02 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-18 11:28:00 +0200 |
commit | 70dabb8a6d7261185e3f9895361e1ef72559fdbd (patch) | |
tree | 5213b00aace1907f29c1d9ad73e37fe4cac4472a /server | |
parent | a71ca29b0cdce94b01f48e9b1a281f222c5edbe2 (diff) | |
download | sonarqube-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.java | 1 |
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)); |