]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16403 Added LIBFFI tmpdir to ES process when running on Windows
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>
Wed, 1 Jun 2022 08:08:28 +0000 (10:08 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 2 Jun 2022 20:03:17 +0000 (20:03 +0000)
server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java

index a613120d69447afc1db3df42fa4d190e243d16aa..b9d14d7f961e18f252a7a9137fe8dec100c3c0a8 100644 (file)
@@ -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)