aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-application/src/main/java/org')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/App.java2
1 files changed, 2 insertions, 0 deletions
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 8109f0ed0ac..059e81c0feb 100644
--- a/sonar-application/src/main/java/org/sonar/application/App.java
+++ b/sonar-application/src/main/java/org/sonar/application/App.java
@@ -98,6 +98,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/*")