maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r208647 - in /maven/scm/trunk: maven-scm-api/src/main/java/org/apache/maven/scm/provider/ maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/ maven-scm-providers/maven-scm-provider-local/s...
Date Thu, 30 Jun 2005 17:28:34 GMT
Author: evenisse
Date: Thu Jun 30 10:28:32 2005
New Revision: 208647

URL: http://svn.apache.org/viewcvs?rev=208647&view=rev
Log:
Remove deprecated makeProviderScmRepository( String,String)

Modified:
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/provider/AbstractScmProvider.java
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/ClearCaseScmProvider.java
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-local/src/main/java/org/apache/maven/scm/provider/local/LocalScmProvider.java
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/provider/AbstractScmProvider.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/provider/AbstractScmProvider.java?rev=208647&r1=208646&r2=208647&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/provider/AbstractScmProvider.java
(original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/provider/AbstractScmProvider.java
Thu Jun 30 10:28:32 2005
@@ -104,29 +104,6 @@
     // Scm Implementation
     // ----------------------------------------------------------------------
 
-    /**
-     * @deprecated Implement makeProviderScmRepository( String, char ) instead.
-     */
-    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, String
delimiter )
-        throws ScmRepositoryException
-    {
-        return null;
-    }
-
-    // TODO: Remove this implementation when all the providers override this method
-    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, char delimiter
)
-        throws ScmRepositoryException
-    {
-        ScmProviderRepository repo = makeProviderScmRepository( scmSpecificUrl, Character.toString(
delimiter ) );
-
-        if ( repo == null )
-        {
-            throw new ScmRepositoryException( "The provider must implement either makeProviderScmRepository(
String, char ) or makeProviderScmRepository( String, String )." );
-        }
-
-        return repo;
-    }
-
     public ScmResult execute( String commandName, ScmProviderRepository repository, ScmFileSet
fileSet,
                               CommandParameters parameters )
         throws ScmException

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/ClearCaseScmProvider.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/ClearCaseScmProvider.java?rev=208647&r1=208646&r2=208647&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/ClearCaseScmProvider.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/main/java/org/apache/maven/scm/provider/clearcase/ClearCaseScmProvider.java
Thu Jun 30 10:28:32 2005
@@ -41,7 +41,7 @@
     // ScmProvider Implementation
     // ----------------------------------------------------------------------
 
-    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, String
delimiter )
+    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, char delimiter
)
         throws ScmRepositoryException
     {
         if ( !StringUtils.isEmpty( scmSpecificUrl ) )

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-local/src/main/java/org/apache/maven/scm/provider/local/LocalScmProvider.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-providers/maven-scm-provider-local/src/main/java/org/apache/maven/scm/provider/local/LocalScmProvider.java?rev=208647&r1=208646&r2=208647&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-local/src/main/java/org/apache/maven/scm/provider/local/LocalScmProvider.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-local/src/main/java/org/apache/maven/scm/provider/local/LocalScmProvider.java
Thu Jun 30 10:28:32 2005
@@ -46,10 +46,10 @@
         return "local";
     }
 
-    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, String
delimiter )
+    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, char delimiter
)
         throws ScmRepositoryException
     {
-        String[] tokens = StringUtils.split( scmSpecificUrl, delimiter );
+        String[] tokens = StringUtils.split( scmSpecificUrl, Character.toString( delimiter
) );
 
         if ( tokens.length != 2 )
         {

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java?rev=208647&r1=208646&r2=208647&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/PerforceScmProvider.java
Thu Jun 30 10:28:32 2005
@@ -39,7 +39,7 @@
     // ScmProvider Implementation
     // ----------------------------------------------------------------------
 
-    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, String
delimiter )
+    public ScmProviderRepository makeProviderScmRepository( String scmSpecificUrl, char delimiter
)
         throws ScmRepositoryException
     {
         String path;



Mime
View raw message