org.sonar.batch
Class AbstractMavenPluginExecutor

java.lang.Object
  extended by org.sonar.batch.AbstractMavenPluginExecutor
All Implemented Interfaces:
BatchComponent, MavenPluginExecutor
Direct Known Subclasses:
Maven2PluginExecutor, Maven3PluginExecutor

public abstract class AbstractMavenPluginExecutor
extends Object
implements MavenPluginExecutor

Abstract implementation of MavenPluginExecutor to reduce duplications in concrete implementations for different Maven versions.


Constructor Summary
AbstractMavenPluginExecutor()
           
 
Method Summary
abstract  void concreteExecute(org.apache.maven.project.MavenProject pom, String goal)
           
 MavenPluginHandler execute(Project project, ProjectDefinition projectDefinition, MavenPluginHandler handler)
           
 void execute(Project project, ProjectDefinition projectDefinition, String goal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMavenPluginExecutor

public AbstractMavenPluginExecutor()
Method Detail

execute

public final MavenPluginHandler execute(Project project,
                                        ProjectDefinition projectDefinition,
                                        MavenPluginHandler handler)
Specified by:
execute in interface MavenPluginExecutor

execute

public final void execute(Project project,
                          ProjectDefinition projectDefinition,
                          String goal)
Specified by:
execute in interface MavenPluginExecutor

concreteExecute

public abstract void concreteExecute(org.apache.maven.project.MavenProject pom,
                                     String goal)
                              throws Exception
Throws:
Exception


Copyright © 2009-2012 SonarSource. All Rights Reserved.