diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-11 19:59:09 +0300 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-18 15:11:11 +0300 |
commit | 231a993de184196c75be888dab2da539a600fac0 (patch) | |
tree | 22b7054e9317b8bd8077500e8613554ee3a337b4 /sonar-core-maven-plugin | |
parent | a88512126dc63e77c19c62a495b984379a01f020 (diff) | |
download | sonarqube-231a993de184196c75be888dab2da539a600fac0.tar.gz sonarqube-231a993de184196c75be888dab2da539a600fac0.zip |
SONAR-1514: Add support for a new Ant task to analyze projects
* Add new environment - Ant.
* Introduce new component (Reactor) in order to break dependency on MavenSession.
* Add annotation SupportedEnvironment and corresponding check to BatchPluginRepository.
To allow specify in which environments BatchExtension should be active.
* Use this new annotation to disable MavenDependenciesSensor in Ant environment.
Diffstat (limited to 'sonar-core-maven-plugin')
-rw-r--r-- | sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java | 5 |
1 files changed, 4 insertions, 1 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 8916b47e66a..e2f6e30d0dc 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 @@ -19,6 +19,8 @@ */ package org.sonar.maven2; +import org.sonar.batch.MavenReactor; + import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.joran.JoranConfigurator; import ch.qos.logback.core.joran.spi.JoranException; @@ -135,7 +137,8 @@ public final class BatchMojo extends AbstractMojo { private void executeBatch() throws MojoExecutionException { - Batch batch = new Batch(getInitialConfiguration(), session, project, + MavenReactor reactor = new MavenReactor(session); + Batch batch = new Batch(getInitialConfiguration(), reactor, session, project, getLog(), lifecycleExecutor, pluginManager, artifactFactory, localRepository, artifactMetadataSource, artifactCollector, dependencyTreeBuilder, projectBuilder, Environment.MAVEN2, Maven2PluginExecutor.class); |