From 9dfd69052c00ebfec598f4dfc6349f4f6aa6a064 Mon Sep 17 00:00:00 2001 From: Lukasz Jarocki Date: Wed, 1 Jun 2022 10:08:28 +0200 Subject: SONAR-16403 Added LIBFFI tmpdir to ES process when running on Windows --- .../src/main/java/org/sonar/application/command/CommandFactoryImpl.java | 1 + 1 file changed, 1 insertion(+) (limited to 'server/sonar-main/src') 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) -- cgit v1.2.3