org.sonar.plugins.core.sources
Class ImportSourcesMavenCollector
java.lang.Object
org.sonar.plugins.api.maven.AbstractMavenCollector
org.sonar.plugins.api.maven.AbstractJavaMavenCollector
org.sonar.plugins.core.sources.ImportSourcesMavenCollector
- All Implemented Interfaces:
- Extension, MavenCollector, MavenExtension
public class ImportSourcesMavenCollector
- extends AbstractJavaMavenCollector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportSourcesMavenCollector
public ImportSourcesMavenCollector(JavaMeasuresRecorder measuresRecorder,
org.apache.maven.plugin.logging.Log log)
shouldCollectOn
public boolean shouldCollectOn(MavenPom pom)
- Specified by:
shouldCollectOn
in interface MavenCollector
- Overrides:
shouldCollectOn
in class AbstractJavaMavenCollector
isEnabled
protected boolean isEnabled(MavenPom pom)
shouldCollectIfNoSources
protected 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.
shouldStopOnFailure
public boolean shouldStopOnFailure()
- Description copied from interface:
MavenCollector
- should sonar fails if this collector fails ?
collect
public void collect(MavenPom pom)
extractPackageName
protected java.lang.String extractPackageName(java.io.File file,
java.io.File directory)
Copyright © 2008 SonarSource SA. All Rights Reserved.