diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-05-27 12:25:05 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-05-27 12:25:16 +0200 |
commit | 5e5916cd83e20df7331bb3534e82f3845951b160 (patch) | |
tree | ecd59c3f473109fd75050ace9d78dd924cdaab75 /sonar-maven-plugin/src/main/java/org | |
parent | c073a325c80ef5d4c0d805b2545dd6be40b1892e (diff) | |
download | sonarqube-5e5916cd83e20df7331bb3534e82f3845951b160.tar.gz sonarqube-5e5916cd83e20df7331bb3534e82f3845951b160.zip |
SONAR-2468 new extension point org.sonar.api.bootstrap.ProjectBuilder
Diffstat (limited to 'sonar-maven-plugin/src/main/java/org')
-rw-r--r-- | sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java index 0f84702b9c9..75673c63b06 100644 --- a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java +++ b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java @@ -39,12 +39,11 @@ import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.apache.maven.shared.dependency.tree.DependencyTreeBuilder; import org.slf4j.LoggerFactory; +import org.sonar.api.batch.bootstrap.ProjectDefinition; +import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.batch.Batch; import org.sonar.batch.MavenProjectConverter; import org.sonar.batch.bootstrapper.EnvironmentInformation; -import org.sonar.batch.bootstrapper.ProjectDefinition; -import org.sonar.batch.bootstrapper.Reactor; - import java.io.InputStream; /** @@ -146,10 +145,10 @@ public final class SonarMojo extends AbstractMojo { private void executeBatch() throws MojoExecutionException { ProjectDefinition def = MavenProjectConverter.convert(session.getSortedProjects(), project); - Reactor reactor = new Reactor(def); + ProjectReactor reactor = new ProjectReactor(def); - Batch batch = new Batch(getInitialConfiguration(), - reactor, session, project, getLog(), lifecycleExecutor, pluginManager, artifactFactory, + Batch batch = Batch.create(reactor, getInitialConfiguration(), + session, getLog(), lifecycleExecutor, pluginManager, artifactFactory, localRepository, artifactMetadataSource, artifactCollector, dependencyTreeBuilder, projectBuilder, getEnvironmentInformation(), Maven2PluginExecutor.class); batch.execute(); |