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
 
 
 
- 
 public class SvnScmProviderRepository extends ScmProviderRepositoryWithHost - Author:
- Emmanuel Venisse
 
- 
- 
Constructor SummaryConstructors Constructor Description SvnScmProviderRepository(String url)SvnScmProviderRepository(String url, String user, String password)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBranchBase()Returns the url/directory to be used when tagging this repository.ScmProviderRepositorygetParent()Get aScmProviderRepositorythat represents the parent folder in the repository.StringgetProtocol()Get the protocol used in this repository (file://, http://, https://,...)StringgetRelativePath(ScmProviderRepository ancestor)Get the relative path between the repository provided as argument and the current repository.StringgetTagBase()Returns the url/directory to be used when tagging this repository.StringgetUrl()voidsetBranchBase(String branchBase)Sets the url/directory to be used when branching this repository.voidsetTagBase(String tagBase)Sets the url/directory to be used when tagging this repository.StringtoString()- 
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepositoryWithHostgetHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKey
 - 
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepositorygetPassword, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItem
 
- 
 
- 
- 
- 
Constructor Detail- 
SvnScmProviderRepositorypublic SvnScmProviderRepository(String url) 
 - 
SvnScmProviderRepositorypublic SvnScmProviderRepository(String url, String user, String password) 
 
- 
 - 
Method Detail- 
getTagBasepublic String getTagBase() Returns the url/directory to be used when tagging this repository.
 - 
setTagBasepublic void setTagBase(String tagBase) 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.
 
 - 
getBranchBasepublic String getBranchBase() Returns the url/directory to be used when tagging this repository.
 - 
setBranchBasepublic void setBranchBase(String branchBase) 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.
 
 - 
getProtocolpublic String getProtocol() Get the protocol used in this repository (file://, http://, https://,...)- Returns:
- the protocol
 
 - 
getParentpublic ScmProviderRepository 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 class- ScmProviderRepository
- Returns:
- the parent repository
 
 - 
getRelativePathpublic String getRelativePath(ScmProviderRepository ancestor) Get the relative path between the repository provided as argument and the current repository.- Overrides:
- getRelativePathin class- ScmProviderRepository
- Parameters:
- ancestor- another repository that should be ancestor of this one
- Returns:
- the relative path or nullif it can't be resolved
 
 
- 
 
-