From: Julien HENRY Date: Mon, 21 Jan 2013 09:29:55 +0000 (+0100) Subject: SONAR-4069 Fix issue with configuration when using old API (without task) X-Git-Tag: 3.5~375 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a91035bdbfd113ff05f1d6b28833d08017c3622a;p=sonarqube.git SONAR-4069 Fix issue with configuration when using old API (without task) --- diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java index 1918abaf85e..cbab3ddb416 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java @@ -52,6 +52,10 @@ public final class Batch { if (builder.globalProperties != null) { globalProperties.putAll(builder.globalProperties); } + else { + // For backward compatibility, previously all properties were set in root project + globalProperties.putAll(Maps.fromProperties(builder.projectReactor.getRoot().getProperties())); + } this.taskCommand = builder.taskCommand; projectReactor = builder.projectReactor; if (builder.isEnableLoggingConfiguration()) {