aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-25 18:41:00 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-25 18:41:00 +0200
commit4a5a256eefb9dd6173b2155bb6994d88da612d5f (patch)
tree8f60a31ff6da75f7a1ffe8157aa977ad2c34ffac
parent0d4f47c5831061fe5de4c37fe28a86089f17cab6 (diff)
downloadsonarqube-4a5a256eefb9dd6173b2155bb6994d88da612d5f.tar.gz
sonarqube-4a5a256eefb9dd6173b2155bb6994d88da612d5f.zip
Use correct temp dir for Ruby on Rails app
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb b/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb
index 12ea9ebd64a..d7b46739219 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb
@@ -72,7 +72,7 @@ Rails::Initializer.run do |config|
# The development mode (real-time edition of ruby code) can be enabled on an app by replacing the
# following line by :
# config.plugin_paths << '/absolute/path/to/myproject/src/main/resources/org/sonar/ror'
- config.plugin_paths << "#{Java::OrgSonarServerUi::JRubyFacade.getInstance().getServerHome()}/temp/ror"
+ config.plugin_paths << "#{Java::JavaLang::System.getProperty("java.io.tmpdir")}/ror"
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)