diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-30 12:13:21 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-30 12:13:21 +0200 |
commit | b7bc1c04ed0ad519c51123c3e24d5198e6a0342b (patch) | |
tree | 8a6359526ee841c19f698c4e9050e0025d80e2ce /sonar-batch-protocol | |
parent | 0c0bff635740e507e6a4cbeb6e04708e87d0ff59 (diff) | |
download | sonarqube-b7bc1c04ed0ad519c51123c3e24d5198e6a0342b.tar.gz sonarqube-b7bc1c04ed0ad519c51123c3e24d5198e6a0342b.zip |
SONAR-5417 Module settings should contains all parent settings
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java index a386a0eeac7..570fb3630e5 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java @@ -43,7 +43,12 @@ public class ProjectReferentials { } public ProjectReferentials addSettings(String projectKey, Map<String, String> settings) { - settingsByModule.put(projectKey, settings); + Map<String, String> existingSettings = settingsByModule.get(projectKey); + if (existingSettings == null) { + existingSettings = new HashMap<String, String>(); + } + existingSettings.putAll(settings); + settingsByModule.put(projectKey, existingSettings); return this; } |