org.sonar.plugins.surefire
Class SurefireMavenCollector

java.lang.Object
  extended by org.sonar.plugins.api.maven.AbstractMavenCollector
      extended by org.sonar.plugins.api.maven.AbstractJavaMavenCollector
          extended by org.sonar.plugins.surefire.SurefireMavenCollector
All Implemented Interfaces:
Extension, CollectsUnitTests, MavenCollector, MavenExtension

public class SurefireMavenCollector
extends AbstractJavaMavenCollector
implements CollectsUnitTests


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

Constructor Detail

SurefireMavenCollector

public SurefireMavenCollector(JavaMeasuresRecorder measuresRecorder,
                              org.apache.maven.plugin.logging.Log log)
Method Detail

shouldCollectIfLightMode

public boolean shouldCollectIfLightMode()
Overrides:
shouldCollectIfLightMode in class AbstractJavaMavenCollector

shouldCollectIfNoSources

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

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

overrideReportsDirectory

public void overrideReportsDirectory(java.lang.String s)

collect

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

collect

protected void collect(java.io.File surefireDir)


Copyright © 2008 SonarSource SA. All Rights Reserved.