diff options
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java | 4 |
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()) { |