org.sonar.api.batch.scm
Class ScmProvider

java.lang.Object
  extended by org.sonar.api.batch.scm.ScmProvider
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension
Direct Known Subclasses:
XooScmProvider

public abstract class ScmProvider
extends Object
implements BatchExtension

See CoreProperties.LINKS_SOURCES_DEV to get old Maven URL format.

Since:
5.0

Constructor Summary
ScmProvider()
           
 
Method Summary
 BlameCommand blameCommand()
           
abstract  String key()
          Unique identifier of the provider.
 boolean supports(File baseDir)
          Does this provider able to manage files located in this directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScmProvider

public ScmProvider()
Method Detail

key

public abstract String key()
Unique identifier of the provider. Can be passed to CoreProperties.SCM_PROVIDER_KEY Can be used in SCM URL to define the provider to use.


supports

public boolean supports(File baseDir)
Does this provider able to manage files located in this directory. Used by autodetection. Not considered if user has forced the provider key.

Returns:
false by default

blameCommand

public BlameCommand blameCommand()


Copyright © 2009–2015 SonarSource. All rights reserved.