|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.xdoc.util.ScmUtil
Utility class to manage SCM informations. NOTE: This is very CVS specific, but I would like to try additional SCM package like subversion ASAP.
Constructor Summary | |
ScmUtil()
|
Method Summary | |
String |
anonymousAccessCVS(String connection)
Create the documentation to provide an anonymous access with a CVS SCM. |
String |
anonymousAccessSVN(String connection,
String checkoutDirectoryName)
Create the documentation to provide an anonymous access with a SVN SCM. |
String |
developerAccessClearCase(String devConnection)
Create the documentation to provide an developer access with a Clearcase SCM. |
String |
developerAccessCVS(String devConnection)
Create the documentation to provide an developer access with a CVS SCM. |
String |
developerAccessPerforce(String devConnection)
Create the documentation to provide an developer access with a Perforce SCM. |
String |
developerAccessStarteam(String devConnection)
Create the documentation to provide an developer access with a Starteam SCM. |
String |
developerAccessSVN(String devConnection,
String checkoutDirectoryName)
Create the documentation to provide an developer access with a SVN SCM. |
String |
getCvsConnection(String conn,
String username)
Get cvs connection string. |
String |
getCvsModule(String conn)
Get cvs module. |
String |
getSCMConnectionSeparator(String connection)
Get the separator used in an SCM string |
String |
getScmType(String scmConnection)
Get the SCM type. |
String |
getSvnConnection(String conn)
Get svn connection string. |
protected boolean |
isValid(String value)
Simple check for a value in the POM. |
String[] |
splitSCMConnection(String connection)
Splits an SCM string into parts. |
String[] |
tokenizerToArray(org.apache.maven.util.EnhancedStringTokenizer tok)
Converts a tokenizer to an array of strings FIXME: This should be in a string util class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScmUtil()
Method Detail |
public String getScmType(String scmConnection)
scmConnection
- the scm connection to analyse.
public String getCvsConnection(String conn, String username)
conn
- six token connection stringusername
- username override if non-empty.
public String getCvsModule(String conn)
conn
- six token connection string
public String getSvnConnection(String conn)
conn
- the repository connection
public String anonymousAccessCVS(String connection)
CVS
SCM.
For example, generate the following command line:
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
cvs -z3 -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co maven-plugins/dist
connection
- The connection string.public String developerAccessCVS(String devConnection)
CVS
SCM.
For example, generate the following command line:
export CVS_RSH=ssh
cvs -z3 -d :ext:username@cvs.apache.org:/home/cvs co maven-plugins/dist
devConnection
- The developer connection string.public String anonymousAccessSVN(String connection, String checkoutDirectoryName)
SVN
SCM.
For example, generate the following command line:
svn checkout http://svn.apache.org/repos/asf/maven/components/trunk/ maven
connection
- The connection string.checkoutDirectoryName
- The checkout directory.public String developerAccessSVN(String devConnection, String checkoutDirectoryName)
SVN
SCM.
For example, generate the following command line:
svn checkout https://svn.apache.org/repos/asf/maven/components/trunk maven
svn commit --username your-username -m "A message"
devConnection
- The developer connection string.checkoutDirectoryName
- The checkout directory.public String developerAccessPerforce(String devConnection)
Perforce
SCM. For example, generate the following command
line:
p4 -H hostname -p port -u username -P password path
p4 -H hostname -p port -u username -P password path submit -c changement
devConnection
- public String developerAccessStarteam(String devConnection)
Starteam
SCM. For example, generate the following command
line:
stcmd co -x -nologo -stop -p myusername:mypassword@myhost:1234/projecturl -is
stcmd ci -x -nologo -stop -p myusername:mypassword@myhost:1234/projecturl -f NCI -is
devConnection
- public String developerAccessClearCase(String devConnection)
Clearcase
SCM. For example, generate the following command
line:
cleartool checkout module
devConnection
- public String[] splitSCMConnection(String connection)
connection
-
public String getSCMConnectionSeparator(String connection)
connection
-
public String[] tokenizerToArray(org.apache.maven.util.EnhancedStringTokenizer tok)
tok
-
protected boolean isValid(String value)
value
- POM value to test.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |