You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/01 16:16:07 UTC

[jira] Closed: (MAVEN-1302) SVN repository parsing broken between 1.0rc2 and 1.0rc3

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Tue, 1 Jun 2004 10:14 AM

duplicates MAVEN-1295
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1302

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1302
    Summary: SVN repository parsing broken between 1.0rc2 and 1.0rc3
       Type: Bug

     Status: Closed
   Priority: Blocker
 Resolution: DUPLICATE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.0-rc3

   Assignee: 
   Reporter: Jerome Lacoste

    Created: Mon, 31 May 2004 10:40 AM
    Updated: Tue, 1 Jun 2004 10:14 AM

Description:
This used to work in 1.0rc2 but doesn't in 1.0rc3.

scm:svn:file://home/jerome/svn-repository/cb.org/jset/trunk/${module.path}

[...]
Caused by: java.lang.IllegalArgumentException: repository connection
string contains less than six tokens
        at
org.apache.maven.project.Repository.splitSCMConnection(Repository.java:240)
        at
org.apache.maven.project.Repository.getScmType(Repository.java:115)
[...]

Problem probably comes from:
http://cvs.apache.org/viewcvs.cgi/maven/src/java/org/apache/maven/project/Repository.java#rev1.20

The change:

     public String getScmType() {
         if ( isValid( getConnection() ) )
         {
-            return getConnection().substring( 4, connection.indexOf( ":", 4 ) );
+            return splitSCMConnection(getConnection())[1];
         }
         return null;

makes us use splitSCM... which refuses to accept a what-used-to-be valid repository definition for SVN (but apparently not for CVS).


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org