continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r494398 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Tue, 09 Jan 2007 13:06:52 GMT
Author: evenisse
Date: Tue Jan  9 05:06:51 2007
New Revision: 494398

URL: http://svn.apache.org/viewvc?view=rev&rev=494398
Log:
Remove projects working directory when a project group is deleted

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

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&rev=494398&r1=494397&r2=494398
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Tue Jan  9 05:06:51 2007
@@ -245,7 +245,15 @@
     public void removeProjectGroup( int projectGroupId )
         throws ContinuumException
     {
-        ProjectGroup projectGroup = getProjectGroup( projectGroupId );
+        ProjectGroup projectGroup = getProjectGroupWithProjects( projectGroupId );
+
+        if ( projectGroup != null )
+        {
+            for ( Iterator i = projectGroup.getProjects().iterator(); i.hasNext(); )
+            {
+                removeProject( ( (Project) i.next() ).getId() );
+            }
+        }
 
         store.removeProjectGroup( projectGroup );
     }



Mime
View raw message