From 941756e4da590911aab8d3950b0eea5e30752042 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 11 Feb 2013 17:07:10 +0100 Subject: SONAR-2291 improve warning when temp folder and user cache are not on the same hard drive --- sonar-home/src/main/java/org/sonar/home/cache/FileCache.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sonar-home') diff --git a/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java b/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java index 1fd9fef7ba3..c480e6c9491 100644 --- a/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java +++ b/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java @@ -107,7 +107,8 @@ public class FileCache { // Check if the file was cached by another process during download if (!targetFile.exists()) { log.warn(String.format("Unable to rename %s to %s", sourceFile.getAbsolutePath(), targetFile.getAbsolutePath())); - log.warn(String.format("A copy/delete will be tempted but with no garantee of atomicity")); + log.warn(String.format("A copy/delete will be tempted but with no garantee of atomicity. It's recommended that " + + "user cache and temp folders are located on the same hard drive partition. Please check $SONAR_USER_HOME or -Dsonar.userHome")); try { FileUtils.moveFile(sourceFile, targetFile); } catch (IOException e) { -- cgit v1.2.3