maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r552359 - /maven/shared/trunk/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java
Date Sun, 01 Jul 2007 20:01:37 GMT
Author: dennisl
Date: Sun Jul  1 13:01:36 2007
New Revision: 552359

URL: http://svn.apache.org/viewvc?view=rev&rev=552359
Log:
[MNG-3079] [maven-model-converter] Extra / inserted into distributionManagement URL for site

Modified:
    maven/shared/trunk/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java

Modified: maven/shared/trunk/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java?view=diff&rev=552359&r1=552358&r2=552359
==============================================================================
--- maven/shared/trunk/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java
(original)
+++ maven/shared/trunk/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java
Sun Jul  1 13:01:36 2007
@@ -405,7 +405,13 @@
 
             site.setName( "Default Site" );
 
-            site.setUrl( "scp://" + siteAddress + "/" + siteDirectory );
+            StringBuffer url = new StringBuffer("scp://");
+            url.append(siteAddress);
+            if(!siteAddress.endsWith( "/" ) && !siteDirectory.startsWith( "/" ))
{
+                url.append("/");
+            }
+            url.append(siteDirectory );
+            site.setUrl( url.toString() );
         }
 
         distributionManagement.setSite( site );



Mime
View raw message