aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-home
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-02-11 17:07:10 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-02-11 17:07:10 +0100
commit941756e4da590911aab8d3950b0eea5e30752042 (patch)
tree97a7aabde0973709246e83a0e8f5022b99769a55 /sonar-home
parent738fc30029db6a5576ca082df8b791cfb0174d37 (diff)
downloadsonarqube-941756e4da590911aab8d3950b0eea5e30752042.tar.gz
sonarqube-941756e4da590911aab8d3950b0eea5e30752042.zip
SONAR-2291 improve warning when temp folder and user cache are not on the same hard drive
Diffstat (limited to 'sonar-home')
-rw-r--r--sonar-home/src/main/java/org/sonar/home/cache/FileCache.java3
1 files changed, 2 insertions, 1 deletions
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) {