org.apache.maven.project
Class Repository

java.lang.Object
  extended byorg.apache.maven.project.BaseObject
      extended byorg.apache.maven.project.Repository

public class Repository
extends BaseObject

NOTE: This is very CVS specific, but I would like to try additional SCM package like subversion ASAP.

Version:
$Id: Repository.java 122300 2004-05-29 23:21:26Z dion $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.project.BaseObject
id
 
Constructor Summary
Repository()
           
 
Method Summary
 java.lang.String getConnection()
          Gets the connection attribute of the Repository object
 java.lang.String getCvsModule()
          Get cvs module.
 java.lang.String getCvsModule(java.lang.String conn)
          Get cvs module.
 java.lang.String getCvsRoot()
          Get cvs root.
 java.lang.String getCvsRoot(java.lang.String conn, java.lang.String username)
          Get cvs root.
 java.lang.String getCvsServer(java.lang.String conn)
          Get cvs server.
 java.lang.String getDeveloperConnection()
          Gets the connection attribute of the Repository object
 java.lang.String getScmType()
          Get the SCM type
 java.lang.String getUrl()
          Gets the url attribute of the Repository object
 void setConnection(java.lang.String connection)
          Sets the connection attribute of the Repository object
 void setDeveloperConnection(java.lang.String developerConnection)
          Sets the connection attribute of the Repository object
 void setUrl(java.lang.String url)
          Sets the url attribute of the Repository object
static java.lang.String[] splitSCMConnection(java.lang.String connection)
          Splits an SCM string into parts
static java.lang.String[] tokenizerToArray(EnhancedStringTokenizer tok)
          Converts a tokenizer to an array of strings FIXME: This should be in a string util class
 
Methods inherited from class org.apache.maven.project.BaseObject
addProperty, equals, getId, getName, getProperties, getProperty, hashCode, isValid, resolvedProperties, setId, setName, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Repository

public Repository()
Method Detail

setConnection

public void setConnection(java.lang.String connection)
Sets the connection attribute of the Repository object

Parameters:
connection - Connection URL.

setDeveloperConnection

public void setDeveloperConnection(java.lang.String developerConnection)
Sets the connection attribute of the Repository object


getConnection

public java.lang.String getConnection()
Gets the connection attribute of the Repository object

Returns:
Connection URL.

getDeveloperConnection

public java.lang.String getDeveloperConnection()
Gets the connection attribute of the Repository object

Returns:
Connection URL.

setUrl

public void setUrl(java.lang.String url)
Sets the url attribute of the Repository object

Parameters:
url - Web URL.

getUrl

public java.lang.String getUrl()
Gets the url attribute of the Repository object

Returns:
Web URL.

getScmType

public java.lang.String getScmType()
Get the SCM type


getCvsRoot

public java.lang.String getCvsRoot()
Get cvs root.

Returns:
CVS root.

getCvsModule

public java.lang.String getCvsModule()
Get cvs module.

Returns:
CVS module.

getCvsServer

public java.lang.String getCvsServer(java.lang.String conn)
Get cvs server. Used in xdocs/src/plugin-resources/templates/cvs-usage.xml

Parameters:
conn - six token connection string
Returns:
CVS module.

getCvsRoot

public java.lang.String getCvsRoot(java.lang.String conn,
                                   java.lang.String username)
Get cvs root. Used in xdocs/src/plugin-resources/templates/cvs-usage.xml

Parameters:
conn - six token connection string
username - username override if non-empty.
Returns:
CVS root.

getCvsModule

public java.lang.String getCvsModule(java.lang.String conn)
Get cvs module. Used in xdocs/src/plugin-resources/templates/cvs-usage.xml

Parameters:
conn - six token connection string
Returns:
CVS module.

splitSCMConnection

public static java.lang.String[] splitSCMConnection(java.lang.String connection)
Splits an SCM string into parts

Parameters:
connection -
Returns:

tokenizerToArray

public static java.lang.String[] tokenizerToArray(EnhancedStringTokenizer tok)
Converts a tokenizer to an array of strings FIXME: This should be in a string util class

Parameters:
tok -
Returns:
String[]


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.