aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-01-21 10:29:55 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2013-01-21 10:30:55 +0100
commita91035bdbfd113ff05f1d6b28833d08017c3622a (patch)
tree13ced3854c63682cef415c9220e70189316f691e /sonar-batch
parent209634e58c4cd6cdf33a3fc75804eaa3bb8345cd (diff)
downloadsonarqube-a91035bdbfd113ff05f1d6b28833d08017c3622a.tar.gz
sonarqube-a91035bdbfd113ff05f1d6b28833d08017c3622a.zip
SONAR-4069 Fix issue with configuration when using old API (without task)
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java4
1 files changed, 4 insertions, 0 deletions
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()) {