org.apache.maven.util
Class RepositoryUtils

java.lang.Object
  extended byorg.apache.maven.util.RepositoryUtils

public final class RepositoryUtils
extends Object

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

Version:
$Id: RepositoryUtils.java 532339 2007-04-25 12:28:56Z ltheussl $
Author:
Jason van Zyl

Constructor Summary
RepositoryUtils()
           
 
Method Summary
static String getSCMConnectionSeparator(String connection)
          Get the separator used in an SCM string
static String[] splitSCMConnection(String connection)
          Splits an SCM string into parts
static 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

RepositoryUtils

public RepositoryUtils()
Method Detail

getSCMConnectionSeparator

public static String getSCMConnectionSeparator(String connection)
Get the separator used in an SCM string

Parameters:
connection -
Returns:
String that can be either ":" or "|"

splitSCMConnection

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

Parameters:
connection -
Returns:
String[]

tokenizerToArray

public static 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

Parameters:
tok -
Returns:
String[]


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