org.sonar.plugins.cobertura
Class CoberturaMavenInitializer

java.lang.Object
  extended by org.sonar.api.batch.Initializer
      extended by org.sonar.plugins.cobertura.CoberturaMavenInitializer
All Implemented Interfaces:
CheckProject, CoverageExtension, DependsUponMavenPlugin, BatchComponent, BatchExtension, Extension

public class CoberturaMavenInitializer
extends Initializer
implements CoverageExtension, DependsUponMavenPlugin

Provides CoberturaMavenPluginHandler and configures correct path to report. Enabled only in Maven environment.


Constructor Summary
CoberturaMavenInitializer(CoberturaMavenPluginHandler handler)
           
 
Method Summary
 void execute(Project project)
           
 MavenPluginHandler getMavenPluginHandler(Project project)
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class org.sonar.api.batch.Initializer
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoberturaMavenInitializer

public CoberturaMavenInitializer(CoberturaMavenPluginHandler handler)
Method Detail

getMavenPluginHandler

public MavenPluginHandler getMavenPluginHandler(Project project)
Specified by:
getMavenPluginHandler in interface DependsUponMavenPlugin

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject
Overrides:
shouldExecuteOnProject in class Initializer

execute

public void execute(Project project)
Specified by:
execute in class Initializer


Copyright © 2009-2012 SonarSource. All Rights Reserved.