diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-02-11 17:59:49 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-02-11 18:00:26 +0100 |
commit | bc64e114c8a5d050f27a8d21eb003a3456a43e96 (patch) | |
tree | 1c65f98eb2f8480dd56c87221f868fc8d2ba37c4 /sonar-home | |
parent | 8c2acfef07959a8e718246cc7ed0c4a79967b139 (diff) | |
download | sonarqube-bc64e114c8a5d050f27a8d21eb003a3456a43e96.tar.gz sonarqube-bc64e114c8a5d050f27a8d21eb003a3456a43e96.zip |
SONAR-2291 Minor improvement
Diffstat (limited to 'sonar-home')
-rw-r--r-- | sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java | 3 |
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); } |