public class SvnScmProviderRepository extends ScmProviderRepositoryWithHost
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
branchBase
The base directory for any branches.
|
private java.lang.String |
protocol |
private java.lang.String |
tagBase
The base directory for any tags.
|
private java.lang.String |
url |
| Constructor and Description |
|---|
SvnScmProviderRepository(java.lang.String url) |
SvnScmProviderRepository(java.lang.String url,
java.lang.String user,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBranchBase()
Returns the url/directory to be used when tagging this repository.
|
ScmProviderRepository |
getParent()
Get a
ScmProviderRepository that represents the parent folder in the repository. |
java.lang.String |
getProtocol()
Get the protocol used in this repository (file://, http://, https://,...)
|
java.lang.String |
getRelativePath(ScmProviderRepository ancestor)
Get the relative path between the repository provided as argument and the current repository.
|
java.lang.String |
getTagBase()
Returns the url/directory to be used when tagging this repository.
|
java.lang.String |
getUrl() |
private void |
parseUrl(java.lang.String url) |
void |
setBranchBase(java.lang.String branchBase)
Sets the url/directory to be used when branching this repository.
|
private void |
setProtocol(java.lang.String protocol) |
void |
setTagBase(java.lang.String tagBase)
Sets the url/directory to be used when tagging this repository.
|
java.lang.String |
toString() |
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKeygetPassword, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItemprivate java.lang.String url
private java.lang.String protocol
private java.lang.String tagBase
private java.lang.String branchBase
public SvnScmProviderRepository(java.lang.String url)
public SvnScmProviderRepository(java.lang.String url,
java.lang.String user,
java.lang.String password)
public java.lang.String getUrl()
public java.lang.String getTagBase()
public void setTagBase(java.lang.String tagBase)
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.public java.lang.String getBranchBase()
public void setBranchBase(java.lang.String branchBase)
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.private void setProtocol(java.lang.String protocol)
public java.lang.String getProtocol()
private void parseUrl(java.lang.String url)
public ScmProviderRepository getParent()
ScmProviderRepository that represents the parent folder in the repository.
Useful when the repository does not exist yet and we need to create it from the parent.getParent in class ScmProviderRepositorypublic java.lang.String getRelativePath(ScmProviderRepository ancestor)
getRelativePath in class ScmProviderRepositoryancestor - another repository that should be ancestor of this onenull if it can't be resolvedpublic java.lang.String toString()
toString in class java.lang.Object