public class DefaultScmRepositoryConfigurator extends org.codehaus.plexus.logging.AbstractLogEnabled implements ScmRepositoryConfigurator
|
ROLE| Constructor and Description |
|---|
DefaultScmRepositoryConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
ScmRepository |
getConfiguredRepository(ReleaseDescriptor releaseDescriptor,
Settings settings)
Construct a configured SCM repository from a release configuration.
|
ScmRepository |
getConfiguredRepository(String url,
ReleaseDescriptor releaseDescriptor,
Settings settings)
Construct a configured SCM repository from a release configuration with an overridden base SCM URL.
|
ScmProvider |
getRepositoryProvider(ScmRepository repository)
Get the SCM provider used for the given SCM repository.
|
void |
setScmManager(ScmManager scmManager) |
public ScmRepository getConfiguredRepository(ReleaseDescriptor releaseDescriptor, Settings settings) throws ScmRepositoryException, NoSuchScmProviderException
ScmRepositoryConfiguratorgetConfiguredRepository in interface ScmRepositoryConfiguratorreleaseDescriptor - the configuration to insert into the repositorysettings - the settings.xml configuraitonScmRepositoryException - if it is not possible to create a suitable SCM repositoryNoSuchScmProviderException - if the requested SCM provider is not availablepublic ScmRepository getConfiguredRepository(String url, ReleaseDescriptor releaseDescriptor, Settings settings) throws ScmRepositoryException, NoSuchScmProviderException
ScmRepositoryConfiguratorgetConfiguredRepository in interface ScmRepositoryConfiguratorurl - the SCM URL to use instead of the one from the release descriptorreleaseDescriptor - the configuration to insert into the repositorysettings - the settings.xml configuraitonScmRepositoryException - if it is not possible to create a suitable SCM repositoryNoSuchScmProviderException - if the requested SCM provider is not availablepublic ScmProvider getRepositoryProvider(ScmRepository repository) throws NoSuchScmProviderException
ScmRepositoryConfiguratorgetRepositoryProvider in interface ScmRepositoryConfiguratorrepository - the SCM repositoryNoSuchScmProviderException - if the requested SCM provider is not availablepublic void setScmManager(ScmManager scmManager)
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.