diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-06-01 10:08:28 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-02 20:03:17 +0000 |
commit | 9dfd69052c00ebfec598f4dfc6349f4f6aa6a064 (patch) | |
tree | ffb238d3d86b375ab1cd77e5b53f3108e2072494 /server | |
parent | 6884660970ee1fec72a828e6f8dc51d64a05b61d (diff) | |
download | sonarqube-9dfd69052c00ebfec598f4dfc6349f4f6aa6a064.tar.gz sonarqube-9dfd69052c00ebfec598f4dfc6349f4f6aa6a064.zip |
SONAR-16403 Added LIBFFI tmpdir to ES process when running on Windows
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java b/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java index a613120d694..b9d14d7f961 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java +++ b/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java @@ -126,6 +126,7 @@ public class CommandFactoryImpl implements CommandFactory { .add("-Des.path.conf=" + esInstallation.getConfDirectory().getAbsolutePath())) .setEnvVariable("ES_JVM_OPTIONS", esInstallation.getJvmOptions().getAbsolutePath()) .setEnvVariable("ES_JAVA_HOME", System.getProperties().getProperty("java.home")) + .setEnvVariable("LIBFFI_TMPDIR", this.tempDir.getAbsolutePath()) .setClassName("org.elasticsearch.bootstrap.Elasticsearch") .addClasspath("lib/*") .suppressEnvVariable(ENV_VAR_JAVA_TOOL_OPTIONS) |