aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-home
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-home')
-rw-r--r--sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java b/sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java
index 79c88b4ce68..76d1d774e81 100644
--- a/sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java
+++ b/sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java
@@ -19,6 +19,7 @@
*/
package org.sonar.home.cache;
+import org.apache.commons.io.FileUtils;
import org.sonar.home.log.Log;
import org.sonar.home.log.StandardLog;
@@ -51,7 +52,7 @@ public class FileCacheBuilder {
String path = System.getenv("SONAR_USER_HOME");
if (path == null) {
// Default
- path = System.getProperty("user.home") + File.separator + ".sonar";
+ path = FileUtils.getUserDirectoryPath() + File.separator + ".sonar";
}
userHome = new File(path);
}