continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmora...@apache.org
Subject svn commit: r766549 - /continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
Date Mon, 20 Apr 2009 00:08:07 GMT
Author: jmorales
Date: Mon Apr 20 00:08:07 2009
New Revision: 766549

URL: http://svn.apache.org/viewvc?rev=766549&view=rev
Log:
Related to issue CONTINUUM-2180.

When add a Maven 1 project asign a template build definition, but template build definition
can not deleted because it is referenced by build definition template. I clone build definition
previous save this (same behavior Maven 2 projects ).

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

Modified: continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java?rev=766549&r1=766548&r2=766549&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
Mon Apr 20 00:08:07 2009
@@ -113,7 +113,9 @@
             }
             for ( BuildDefinition bd : (List<BuildDefinition>) buildDefinitionTemplate.getBuildDefinitions()
)
             {
-                project.addBuildDefinition( bd );
+                BuildDefinition cloneBuildDefinition = buildDefinitionService.cloneBuildDefinition(
bd );
+                cloneBuildDefinition.setTemplate( false );
+                project.addBuildDefinition( cloneBuildDefinition );
             }
             result.addProject( project, MavenOneBuildExecutor.ID );
         }



Mime
View raw message