From 31e3a71ef3e97fb6041200f6493d457901d8285b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 2 Apr 2013 17:49:32 +0200 Subject: [PATCH] Remove coupling on commons-io FileUtils --- .../src/main/java/org/sonar/home/cache/FileCacheBuilder.java | 3 +-- 1 file changed, 1 insertion(+), 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); } -- 2.39.5