diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-06-12 17:15:16 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-06-12 17:15:16 +0200 |
commit | f29ce9033080ae74a2f31541fe09c755376a61e2 (patch) | |
tree | dc48a466cccb89cef92f54260ac82bb8eeabae97 /sonar-batch | |
parent | e534ce920a8b372156fe6510c14f93ab39f009ce (diff) | |
download | sonarqube-f29ce9033080ae74a2f31541fe09c755376a61e2.tar.gz sonarqube-f29ce9033080ae74a2f31541fe09c755376a61e2.zip |
SONAR-4386 Provide a context to ProjectBuilder for later evolutions
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/ProjectReactorReady.java | 11 |
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); |