org.sonar.plugins.jacoco
Class JaCoCoMavenPluginHandler

java.lang.Object
  extended by org.sonar.plugins.jacoco.JaCoCoMavenPluginHandler
All Implemented Interfaces:
MavenPluginHandler, BatchComponent, BatchExtension, Extension

public class JaCoCoMavenPluginHandler
extends Object
implements MavenPluginHandler


Constructor Summary
JaCoCoMavenPluginHandler(JacocoConfiguration configuration)
           
 
Method Summary
 void configure(Project project, MavenPlugin plugin)
          Configures the pom being executed, add or remove plugin properties.
 String getArtifactId()
          The plugin artifact id
 String[] getGoals()
          The maven goals to execute
 String getGroupId()
          The plugin group id
 String getVersion()
          The fixed plugin version to execute
 boolean isFixedVersion()
          Indicates if the plugin version should be fixed or not, it means that if your pom defines another version than the one defined by getVersion(), this version will be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaCoCoMavenPluginHandler

public JaCoCoMavenPluginHandler(JacocoConfiguration configuration)
Method Detail

getGroupId

public String getGroupId()
Description copied from interface: MavenPluginHandler
The plugin group id

Specified by:
getGroupId in interface MavenPluginHandler
Returns:
the group id

getArtifactId

public String getArtifactId()
Description copied from interface: MavenPluginHandler
The plugin artifact id

Specified by:
getArtifactId in interface MavenPluginHandler
Returns:
artifact id

getVersion

public String getVersion()
Description copied from interface: MavenPluginHandler
The fixed plugin version to execute

Specified by:
getVersion in interface MavenPluginHandler
Returns:
the plugin version

isFixedVersion

public boolean isFixedVersion()
Description copied from interface: MavenPluginHandler
Indicates if the plugin version should be fixed or not, it means that if your pom defines another version than the one defined by getVersion(), this version will be used

Specified by:
isFixedVersion in interface MavenPluginHandler
Returns:
true if the version should be fixed

getGoals

public String[] getGoals()
Description copied from interface: MavenPluginHandler
The maven goals to execute

Specified by:
getGoals in interface MavenPluginHandler
Returns:
an array of goals

configure

public void configure(Project project,
                      MavenPlugin plugin)
Description copied from interface: MavenPluginHandler
Configures the pom being executed, add or remove plugin properties. This method is automatically executed by Sonar. Plugins do NOT have to execute it.

Specified by:
configure in interface MavenPluginHandler


Copyright © 2009-2012 SonarSource. All Rights Reserved.