(without dropping the dependency)
String getPathToSecretKey() {
if (StringUtils.isBlank(pathToSecretKey)) {
- pathToSecretKey = new File(FileUtils.getUserDirectoryPath(), ".sonar/sonar-secret.txt").getPath();
+ pathToSecretKey = new File(System.getProperty("user.home"), ".sonar/sonar-secret.txt").getPath();
}
return pathToSecretKey;
}
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.text.StrSubstitutor;
-import static org.apache.commons.io.FileUtils.deleteQuietly;
+import static org.sonar.process.FileUtils2.deleteQuietly;
public final class ConfigurationUtils {