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 Wed, 12 Jan 2005 08:53:11 GMT
brett       2005/01/12 00:53:11

  Modified:    maven-scm-providers/maven-scm-provider-svn/src/main/java/org/apache/maven/scm/provider/svn/repository
                        SvnScmProviderRepository.java
               maven-scm-api/src/main/java/org/apache/maven/scm/provider
                        ScmProviderRepository.java
  Log:
  remove getModule() again - no real concept of a module exposed through the API
  
  Revision  Changes    Path
  1.4       +1 -6      maven-scm/maven-scm-providers/maven-scm-provider-svn/src/main/java/org/apache/maven/scm/provider/svn/repository/SvnScmProviderRepository.java
  
  Index: SvnScmProviderRepository.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-providers/maven-scm-provider-svn/src/main/java/org/apache/maven/scm/provider/svn/repository/SvnScmProviderRepository.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SvnScmProviderRepository.java	4 Jan 2005 09:44:32 -0000	1.3
  +++ SvnScmProviderRepository.java	12 Jan 2005 08:53:11 -0000	1.4
  @@ -64,11 +64,6 @@
           return user;
       }
   
  -    public String getModule()
  -    {
  -        return deriveModuleFromUrl( url );
  -    }
  -
       public String getTagBase()
       {
           return tagBase;
  
  
  
  1.5       +1 -30     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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ScmProviderRepository.java	7 Jan 2005 12:00:43 -0000	1.4
  +++ ScmProviderRepository.java	12 Jan 2005 08:53:11 -0000	1.5
  @@ -22,33 +22,4 @@
    */
   public abstract class ScmProviderRepository
   {
  -    /**
  -     * Get the concept of a model from this repository.
  -     * By default, this is just the last path element of the URL, but it may be overridden
by the provider.
  -     * @see #deriveModuleFromUrl(String)
  -     *
  -     * @return the module name, a relative path
  -     */
  -    public abstract String getModule();
  -
  -    /**
  -     * Derive the default module from an SCM URL. This will be the last path element in
the URL.
  -     *
  -     * @param url the url
  -     * @return the module
  -     */
  -    protected static String deriveModuleFromUrl( String url )
  -    {
  -        if ( url.endsWith( "/" ) )
  -        {
  -            url = url.substring( 0, url.length() - 1 );
  -        }
  -        if ( url == null || url.length() == 0 )
  -        {
  -            return "";
  -        }
  -
  -        int index = url.lastIndexOf( '/' );
  -        return ( index >= 0 ? url.substring( index + 1 ) : "" );
  -    }
   }
  
  
  

Mime
View raw message