continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r915864 - /continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Wed, 24 Feb 2010 16:53:38 GMT
Author: brett
Date: Wed Feb 24 16:53:38 2010
New Revision: 915864

URL: http://svn.apache.org/viewvc?rev=915864&view=rev
Log:
[CONTINUUM-1743] fix the clearing of project dependencies to help delete build results properly

Modified:
    continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=915864&r1=915863&r2=915864&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Wed Feb 24 16:53:38 2010
@@ -660,6 +660,12 @@
 
             log.info( "Remove project " + project.getName() + "(" + projectId + ")" );
 
+            // remove dependencies first to avoid key clash with build results
+            project = projectDao.getProjectWithDependencies( projectId );
+            project.setParent( null );
+            project.getDependencies().clear();
+            projectDao.updateProject( project );
+
             Collection<BuildResult> buildResults = getBuildResultsForProject( projectId
);
 
             for ( BuildResult br : buildResults )



Mime
View raw message