aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core-maven-plugin
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-05-27 12:25:05 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-05-27 12:25:16 +0200
commit5e5916cd83e20df7331bb3534e82f3845951b160 (patch)
treeecd59c3f473109fd75050ace9d78dd924cdaab75 /sonar-core-maven-plugin
parentc073a325c80ef5d4c0d805b2545dd6be40b1892e (diff)
downloadsonarqube-5e5916cd83e20df7331bb3534e82f3845951b160.tar.gz
sonarqube-5e5916cd83e20df7331bb3534e82f3845951b160.zip
SONAR-2468 new extension point org.sonar.api.bootstrap.ProjectBuilder
Diffstat (limited to 'sonar-core-maven-plugin')
-rw-r--r--sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java b/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java
index 02578c37b0a..f81ea53d442 100644
--- a/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java
+++ b/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java
@@ -39,11 +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,9 +146,9 @@ public final class BatchMojo 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,
+ Batch batch = Batch.create(reactor, getInitialConfiguration(), session, project,
getLog(), lifecycleExecutor, pluginManager, artifactFactory,
localRepository, artifactMetadataSource, artifactCollector,
dependencyTreeBuilder, projectBuilder, getEnvironmentInformation(), Maven2PluginExecutor.class);