diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-13 18:25:31 +0200 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-13 18:25:31 +0200 |
commit | fd146e021cc68228933abc9027021e0fea08843f (patch) | |
tree | 79458ef2a87f01aa7688eb5ecb6c6550b8a90d9a /src/main/java | |
parent | 4c9bf4c9306e7bcc4732092e4dee805bdae36077 (diff) | |
download | sonar-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.java | 4 |
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) { |