maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/provider ScmProviderRepository.java
Date Fri, 07 Jan 2005 12:00:43 GMT
brett       2005/01/07 04:00:43

  Modified:    maven-scm-api/src/main/java/org/apache/maven/scm/provider
                        ScmProviderRepository.java
  Log:
  get correct module if there is a trailing /
  
  Revision  Changes    Path
  1.4       +6 -2      maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java
  
  Index: ScmProviderRepository.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ScmProviderRepository.java	20 Dec 2004 17:56:19 -0000	1.3
  +++ ScmProviderRepository.java	7 Jan 2005 12:00:43 -0000	1.4
  @@ -39,7 +39,11 @@
        */
       protected static String deriveModuleFromUrl( String url )
       {
  -        if ( url == null || url.length() == 0  || "/".equals( url ) )
  +        if ( url.endsWith( "/" ) )
  +        {
  +            url = url.substring( 0, url.length() - 1 );
  +        }
  +        if ( url == null || url.length() == 0 )
           {
               return "";
           }
  
  
  

Mime
View raw message