aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-13 18:25:31 +0200
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-13 18:25:31 +0200
commitfd146e021cc68228933abc9027021e0fea08843f (patch)
tree79458ef2a87f01aa7688eb5ecb6c6550b8a90d9a /src/main/java
parent4c9bf4c9306e7bcc4732092e4dee805bdae36077 (diff)
downloadsonar-scanner-cli-fd146e021cc68228933abc9027021e0fea08843f.tar.gz
sonar-scanner-cli-fd146e021cc68228933abc9027021e0fea08843f.zip
SONARPLUGINS-2202 Clean the working dir name
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java b/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
index 30f1cb4..324bd15 100644
--- a/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
+++ b/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
@@ -156,7 +156,9 @@ public final class SonarProjectBuilder {
@VisibleForTesting
protected File initModuleWorkDir(Properties properties) {
- return new File(rootProjectWorkDir, properties.getProperty(PROPERTY_PROJECT_KEY));
+ String cleanKey = StringUtils.deleteWhitespace(properties.getProperty(PROPERTY_PROJECT_KEY));
+ cleanKey = StringUtils.replace(cleanKey, ":", "_");
+ return new File(rootProjectWorkDir, cleanKey);
}
private void defineChildren(ProjectDefinition parentProject) {