summaryrefslogtreecommitdiffstats
path: root/sonar-home
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-04-02 17:49:32 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-06-17 19:05:26 +0200
commit31e3a71ef3e97fb6041200f6493d457901d8285b (patch)
tree719eec8dcd1bb482ddc0a816b1d0eb959af5eb83 /sonar-home
parentec362118f5482b294fc657c00be6288142106428 (diff)
downloadsonarqube-31e3a71ef3e97fb6041200f6493d457901d8285b.tar.gz
sonarqube-31e3a71ef3e97fb6041200f6493d457901d8285b.zip
Remove coupling on commons-io FileUtils
Diffstat (limited to 'sonar-home')
-rw-r--r--sonar-home/src/main/java/org/sonar/home/cache/FileCacheBuilder.java3
1 files changed, 1 insertions, 2 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 bb3c20f95e6..59441a5ec92 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,7 +19,6 @@
*/
package org.sonar.home.cache;
-import org.apache.commons.io.FileUtils;
import org.sonar.home.log.Log;
import org.sonar.home.log.StandardLog;
@@ -52,7 +51,7 @@ public class FileCacheBuilder {
String path = System.getenv("SONAR_USER_HOME");
if (path == null) {
// Default
- path = FileUtils.getUserDirectoryPath() + File.separator + ".sonar";
+ path = System.getProperty("user.home") + File.separator + ".sonar";
}
userHome = new File(path);
}