org.sonar.plugins.cobertura
Class CoberturaMavenCollector

java.lang.Object
  extended by org.sonar.plugins.api.maven.AbstractMavenCollector
      extended by org.sonar.plugins.api.maven.AbstractJavaMavenCollector
          extended by org.sonar.plugins.cobertura.CoberturaMavenCollector
All Implemented Interfaces:
Extension, CollectsCodeCoverage, MavenCollector, MavenExtension

public class CoberturaMavenCollector
extends AbstractJavaMavenCollector
implements CollectsCodeCoverage


Field Summary
static java.lang.String PROP_KEY_REUSE_XML
           
 
Constructor Summary
CoberturaMavenCollector(JavaMeasuresRecorder recorder, org.apache.maven.plugin.logging.Log log)
           
 
Method Summary
protected  void collect(java.io.File reportXmlFile)
           
 void collect(MavenPom pom)
           
 void configure(CollectsUnitTests unitTestsCollector)
           
 java.lang.Class<? extends MavenPluginHandler> dependsOnMavenPlugin(MavenPom pom)
          the collector should depend on the execution of a Maven plugin.
protected  boolean shouldCollectIfNoSources()
           
 boolean shouldStopOnFailure()
          should sonar fails if this collector fails ?
 
Methods inherited from class org.sonar.plugins.api.maven.AbstractJavaMavenCollector
getLog, getMeasuresRecorder, shouldCollectIfLightMode, shouldCollectOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_KEY_REUSE_XML

public static final java.lang.String PROP_KEY_REUSE_XML
See Also:
Constant Field Values
Constructor Detail

CoberturaMavenCollector

public CoberturaMavenCollector(JavaMeasuresRecorder recorder,
                               org.apache.maven.plugin.logging.Log log)
Method Detail

dependsOnMavenPlugin

public java.lang.Class<? extends MavenPluginHandler> dependsOnMavenPlugin(MavenPom pom)
Description copied from interface: MavenCollector
the collector should depend on the execution of a Maven plugin. In such a case this method returns an handler that defines the Maven plugin. Return null if no maven plugin to execute.

Specified by:
dependsOnMavenPlugin in interface MavenCollector

shouldStopOnFailure

public boolean shouldStopOnFailure()
Description copied from interface: MavenCollector
should sonar fails if this collector fails ?

Specified by:
shouldStopOnFailure in interface MavenCollector

shouldCollectIfNoSources

protected boolean shouldCollectIfNoSources()
Specified by:
shouldCollectIfNoSources in class AbstractJavaMavenCollector

collect

public void collect(MavenPom pom)
Specified by:
collect in interface MavenCollector

collect

protected void collect(java.io.File reportXmlFile)

configure

public void configure(CollectsUnitTests unitTestsCollector)
Specified by:
configure in interface CollectsCodeCoverage


Copyright © 2008 SonarSource SA. All Rights Reserved.