From f29ce9033080ae74a2f31541fe09c755376a61e2 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 12 Jun 2013 17:15:16 +0200 Subject: SONAR-4386 Provide a context to ProjectBuilder for later evolutions --- .../main/java/org/sonar/batch/scan/ProjectReactorReady.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sonar-batch') 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); -- cgit v1.2.3