o MAVEN-277: Delimiter is now changable.Get delim from character after scm eg

scm|cvs (delim is |)


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding 2003-02-17 20:53:42 +00:00
parent 390b6095ea
commit bb57c2d925

View File

@ -83,7 +83,7 @@ import org.apache.tools.ant.types.Commandline;
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @author <a href="mailto:pete-apache-dev@kazmier.com">Pete Kazmier</a>
* @version
* $Id: CvsChangeLogGenerator.java,v 1.1 2003/01/24 03:44:53 jvanzyl Exp $
* $Id: CvsChangeLogGenerator.java,v 1.2 2003/02/17 20:53:42 bwalding Exp $
*/
class CvsChangeLogGenerator extends AbstractChangeLogGenerator
{
@ -101,7 +101,15 @@ class CvsChangeLogGenerator extends AbstractChangeLogGenerator
throw new IllegalArgumentException("repository connection string"
+ " not specified");
}
StringTokenizer tokenizer = new StringTokenizer(getConnection(), ":");
String connection = getConnection();
if (connection.length() < 4) {
throw new IllegalArgumentException("repository connection string doesn't start with scm<delim>");
}
String inputDelim = connection.substring(3, 4);
StringTokenizer tokenizer = new StringTokenizer(getConnection(), inputDelim);
if (tokenizer.countTokens() < 6)
{
throw new IllegalArgumentException("repository connection string"