public interface ScmRepositoryConfigurator
| 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.
|
static final String ROLE
ScmRepository getConfiguredRepository(ReleaseDescriptor releaseDescriptor, Settings settings) throws ScmRepositoryException, NoSuchScmProviderException
releaseDescriptor - 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 availableScmProvider getRepositoryProvider(ScmRepository repository) throws NoSuchScmProviderException
repository - the SCM repositoryNoSuchScmProviderException - if the requested SCM provider is not availableScmRepository getConfiguredRepository(String url, ReleaseDescriptor releaseDescriptor, Settings settings) throws ScmRepositoryException, NoSuchScmProviderException
url - 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 availableCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.