Class SvnScmProviderRepository
java.lang.Object
org.apache.maven.scm.provider.ScmProviderRepository
org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the url/directory to be used when tagging this repository.Get aScmProviderRepositorythat represents the parent folder in the repository.Get the protocol used in this repository (file://, http://, https://,...)getRelativePath(ScmProviderRepository ancestor) Get the relative path between the repository provided as argument and the current repository.Returns the url/directory to be used when tagging this repository.getUrl()private voidvoidsetBranchBase(String branchBase) Sets the url/directory to be used when branching this repository.private voidsetProtocol(String protocol) voidsetTagBase(String tagBase) Sets the url/directory to be used when tagging this repository.toString()Methods inherited from class ScmProviderRepositoryWithHost
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKeyMethods inherited from class ScmProviderRepository
getPassword, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItem
-
Field Details
-
url
-
protocol
-
tagBase
The base directory for any tags. Can be relative to the repository URL or an absolute URL. -
branchBase
The base directory for any branches. Can be relative to the repository URL or an absolute URL.
-
-
Constructor Details
-
SvnScmProviderRepository
-
SvnScmProviderRepository
-
-
Method Details
-
getUrl
-
getTagBase
Returns the url/directory to be used when tagging this repository. -
setTagBase
Sets the url/directory to be used when tagging this repository. The TagBase is a way to override the default tag location for the repository. The default tag location is automatically determined for repositories in the standard subversion layout (with /tags /branches /trunk). Specify this value only if the repository is using a directory other than "/tags" for tagging.- Parameters:
tagBase- an absolute or relative url to the base directory to create tags in. URL should be in a format that svn client understands, not the scm url format.
-
getBranchBase
Returns the url/directory to be used when tagging this repository. -
setBranchBase
Sets the url/directory to be used when branching this repository. The BranchBase is a way to override the default branch location for the repository. The default branch location is automatically determined for repositories in the standard subversion layout (with /tags /branches /trunk). Specify this value only if the repository is using a directory other than "/branches" for branching.- Parameters:
branchBase- an absolute or relative url to the base directory to create branch in. URL should be in a format that svn client understands, not the scm url format.
-
setProtocol
-
getProtocol
Get the protocol used in this repository (file://, http://, https://,...)- Returns:
- the protocol
-
parseUrl
-
getParent
Get aScmProviderRepositorythat represents the parent folder in the repository. Useful when the repository does not exist yet, and we need to create it from the parent.- Overrides:
getParentin classScmProviderRepository- Returns:
- the parent repository
-
getRelativePath
Get the relative path between the repository provided as argument and the current repository.- Overrides:
getRelativePathin classScmProviderRepository- Parameters:
ancestor- another repository that should be ancestor of this one- Returns:
- the relative path or
nullif it can't be resolved
-
toString
-