|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.antmod.scm.ScmUrl
public class ScmUrl
Representation of an SCM url.
The format of this element is as follows:scm:<provider>:<provider-parameters>For cvs, the format for pserver repositories should be (password is optional):
scm:cvs:pserver:user[:password]@host:/cvs/root:module-nameFor local system repositories
scm:cvs:local:ignored:/cvs/root:module-nameFor ssh access:
scm:cvs:ext:user@host:/cvs/root:module-nameSubversion syntax (between brackets is optional):
scm:svn:protocol://[user[:password]@]host/path/to/svn[:module-name]Subversion urls using this syntax look for example like this:
scm:svn:http://user:password@host.example.com/path/to/svn
scm:svn:http://host.example.com:8080/path/to/svn
scm:svn:svn://host.example.com/path/to/svn
scm:svn:file:///C:/path/to/localsvn
scm:svn:file:///cygdrive/c/path/to/localsvnRemember that CVS will expect an environment variable called
CVS_RSH to be set, typically to ssh or your ssh client.
| Constructor Summary | |
|---|---|
ScmUrl(java.lang.String urlString)
Constructs new ScmUrl instance based on the parsed contents of the given scm url string. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
|
java.lang.String |
getModule()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPath()
|
java.lang.String |
getProtocol()
|
java.lang.String |
getType()
|
java.lang.String |
getUrlString()
Get the original URL string with which this ScmUrl was created. |
java.lang.String |
getUrlStringNoModule()
Get the original URL string with which this ScmUrl was created, without the module element (if any). |
java.lang.String |
getUser()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScmUrl(java.lang.String urlString)
throws java.lang.IllegalArgumentException,
java.text.ParseException
urlString - The string representing the SCM url.
java.lang.IllegalArgumentException
java.text.ParseException| Method Detail |
|---|
public java.lang.String getHost()
public java.lang.String getModule()
public java.lang.String getPassword()
public java.lang.String getPath()
public java.lang.String getProtocol()
public java.lang.String getType()
public java.lang.String getUser()
public java.lang.String getUrlString()
public java.lang.String getUrlStringNoModule()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||