aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-home/src/main/java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-29 14:43:50 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-30 16:28:08 +0200
commit9ee1c1e3ba2be613b41807e119ae9f819aa7952b (patch)
treeff422adea1e7b1156abbe90dc3e171fc9d0d8179 /sonar-home/src/main/java
parent91cf8cfa5a50c8322b39f87c4cf187690af88d99 (diff)
downloadsonarqube-9ee1c1e3ba2be613b41807e119ae9f819aa7952b.tar.gz
sonarqube-9ee1c1e3ba2be613b41807e119ae9f819aa7952b.zip
Dont use server version in global cache keys
Diffstat (limited to 'sonar-home/src/main/java')
-rw-r--r--sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java b/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java
index 2097832853b..7be8fae66e8 100644
--- a/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java
+++ b/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java
@@ -49,20 +49,22 @@ public class PersistentCacheBuilder {
}
public PersistentCacheBuilder setAreaForProject(String serverUrl, String serverVersion, String projectKey) {
- relativePath = Paths.get(sanitizeFilename(serverUrl + "-" + serverVersion))
+ relativePath = Paths.get(sanitizeFilename(serverUrl))
+ .resolve(sanitizeFilename(serverVersion))
.resolve("projects")
.resolve(sanitizeFilename(projectKey));
return this;
}
- public PersistentCacheBuilder setAreaForGlobal(String serverUrl, String serverVersion) {
- relativePath = Paths.get(sanitizeFilename(serverUrl + "-" + serverVersion))
+ public PersistentCacheBuilder setAreaForGlobal(String serverUrl) {
+ relativePath = Paths.get(sanitizeFilename(serverUrl))
.resolve("global");
return this;
}
public PersistentCacheBuilder setAreaForLocalProject(String serverUrl, String serverVersion) {
- relativePath = Paths.get(sanitizeFilename(serverUrl + "-" + serverVersion))
+ relativePath = Paths.get(sanitizeFilename(serverUrl))
+ .resolve(sanitizeFilename(serverVersion))
.resolve("local");
return this;
}