continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r772487 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Thu, 07 May 2009 02:23:44 GMT
Author: ctan
Date: Thu May  7 02:23:43 2009
New Revision: 772487

URL: http://svn.apache.org/viewvc?rev=772487&view=rev
Log:
[CONTINUUM-2219] fixed creation of project scm root when migrating from 1.2.x database without
using a data migration tool
merge -r 772485:772486 from 1.3.x branch

Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=772487&r1=772486&r2=772487&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Thu May  7 02:23:43 2009
@@ -3424,7 +3424,7 @@
 
         for ( Project project : projectsList )
         {
-            if ( !project.getScmUrl().startsWith( url ) )
+            if ( StringUtils.isEmpty( url ) || !project.getScmUrl().startsWith( url ) )
             {
                 // this is a root
                 url = project.getScmUrl();



Mime
View raw message