org.sonar.plugins.checkstyle
Class CheckstyleMavenCollector

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

public class CheckstyleMavenCollector
extends AbstractJavaMavenCollector


Constructor Summary
CheckstyleMavenCollector(JavaMeasuresRecorder measuresRecorder, org.apache.maven.plugin.logging.Log log, RulesManager rulesManager)
           
 
Method Summary
protected  void collect(java.io.File reportFile, java.util.List<java.lang.String> sourceDirs)
           
 void collect(MavenPom pom)
           
 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
 

Constructor Detail

CheckstyleMavenCollector

public CheckstyleMavenCollector(JavaMeasuresRecorder measuresRecorder,
                                org.apache.maven.plugin.logging.Log log,
                                RulesManager rulesManager)
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.


shouldStopOnFailure

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


shouldCollectIfNoSources

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

collect

public void collect(MavenPom pom)

collect

protected void collect(java.io.File reportFile,
                       java.util.List<java.lang.String> sourceDirs)


Copyright © 2008 SonarSource SA. All Rights Reserved.