maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r406968 - /maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
Date Tue, 16 May 2006 15:15:41 GMT
Author: evenisse
Date: Tue May 16 08:15:39 2006
New Revision: 406968

URL: http://svn.apache.org/viewcvs?rev=406968&view=rev
Log:
[SCM-196] choose automatically developerConnection if connection url isn't define even if
connectionType is "connection".

Modified:
    maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java

Modified: maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java?rev=406968&r1=406967&r2=406968&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
(original)
+++ maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
Tue May 16 08:15:39 2006
@@ -53,6 +53,8 @@
     private String developerConnectionUrl;
 
     /**
+     * The type of connection to use (connection or developerConnection).
+     *
      * @parameter expression="${connectionType}" default-value="connection"
      */
     private String connectionType;
@@ -134,7 +136,7 @@
      * @readonly
      */
     private Settings settings;
-    
+
     protected void setConnectionType( String connectionType )
     {
         this.connectionType = connectionType;
@@ -146,8 +148,7 @@
         {
             return connectionUrl;
         }
-        else if ( StringUtils.isNotEmpty( developerConnectionUrl ) &&
-            "developerconnection".equals( connectionType.toLowerCase() ) )
+        else if ( StringUtils.isNotEmpty( developerConnectionUrl ) )
         {
             return developerConnectionUrl;
         }



Mime
View raw message