aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/ProjectReactorReady.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectReactorReady.java b/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectReactorReady.java
index 550ec324b82..bf535ddf90a 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectReactorReady.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectReactorReady.java
@@ -20,6 +20,7 @@
package org.sonar.batch.scan;
import org.sonar.api.batch.bootstrap.ProjectBuilder;
+import org.sonar.api.batch.bootstrap.ProjectBuilderContext;
import org.sonar.api.batch.bootstrap.ProjectReactor;
import org.sonar.api.config.Settings;
@@ -53,8 +54,16 @@ public class ProjectReactorReady {
}
public void start() {
+ ProjectBuilderContext context = new ProjectBuilderContext() {
+
+ @Override
+ public ProjectReactor getProjectReactor() {
+ return reactor;
+ }
+ };
+
for (ProjectBuilder projectBuilder : projectBuilders) {
- projectBuilder.doBuild(reactor);
+ projectBuilder.build(context);
}
ProjectReactorValidator validator = new ProjectReactorValidator(settings);
validator.validate(reactor);