From a79dddadd5038e9d6bbc26d363e39576180c1063 Mon Sep 17 00:00:00 2001 From: Sébastien Lesaint Date: Tue, 23 Aug 2016 15:07:37 +0200 Subject: SONAR-7896 set env var TMPDIR to make JRuby use SQ tmp dir for tmp files these temp file are especially used when uploading --- sonar-application/src/main/java/org/sonar/application/App.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sonar-application/src/main/java/org') diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java index 8c8d73529a8..75cb88a007c 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -92,6 +92,8 @@ public class App implements Stoppable { .addJavaOptions(props.nonNullValue(ProcessProperties.WEB_JAVA_ADDITIONAL_OPTS)) // required for logback tomcat valve .setEnvVariable(ProcessProperties.PATH_LOGS, props.nonNullValue(ProcessProperties.PATH_LOGS)) + // ensure JRuby uses SQ's temp directory as temp directory (eg. for temp files used during HTTP uploads) + .setEnvVariable("TMPDIR", props.nonNullValue(ProcessProperties.PATH_TEMP)) .setClassName("org.sonar.server.app.WebServer") .setArguments(props.rawProperties()) .addClasspath("./lib/common/*") -- cgit v1.2.3