continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r565732 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Tue, 14 Aug 2007 13:02:53 GMT
Author: evenisse
Date: Tue Aug 14 06:02:52 2007
New Revision: 565732

URL: http://svn.apache.org/viewvc?view=rev&rev=565732
Log:
[CONTINUUM-1385] Fix JDO exception when deleting a project with build result attached to a
project build definition

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=565732&r1=565731&r2=565732
==============================================================================
--- 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 Aug 14 06:02:52 2007
@@ -540,9 +540,15 @@
     {
         try
         {
-            Project project = store.getProject( projectId );
+            Project project = store.getProjectWithBuilds( projectId );
 
             getLogger().info( "Remove project " + project.getName() + "(" + projectId + ")"
);
+
+            for ( Iterator i = project.getBuildResults().iterator(); i.hasNext(); )
+            {
+                BuildResult br = (BuildResult) i.next();
+                store.removeBuildResult( br );
+            }
 
             File workingDirectory = getWorkingDirectory( projectId );
 



Mime
View raw message