continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r781930 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Fri, 05 Jun 2009 07:05:01 GMT
Author: ctan
Date: Fri Jun  5 07:05:00 2009
New Revision: 781930

URL: http://svn.apache.org/viewvc?rev=781930&view=rev
Log:
remove remaining project scm root when deleting the project group
merge -r 781928:781929 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=781930&r1=781929&r2=781930&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
Fri Jun  5 07:05:00 2009
@@ -425,6 +425,14 @@
                 removeProject( projectId );
             }
 
+            // check if there are any project scm root left
+            List<ProjectScmRoot> scmRoots = getProjectScmRootByProjectGroup( projectGroupId
);
+
+            for ( ProjectScmRoot scmRoot : scmRoots )
+            {
+                removeProjectScmRoot( scmRoot );
+            }
+
             log.info( "Remove project group " + projectGroup.getName() + "(" + projectGroup.getId()
+ ")" );
 
             Map<String, Object> context = new HashMap<String, Object>();



Mime
View raw message