continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmora...@apache.org
Subject svn commit: r766551 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
Date Mon, 20 Apr 2009 00:20:37 GMT
Author: jmorales
Date: Mon Apr 20 00:20:37 2009
New Revision: 766551

URL: http://svn.apache.org/viewvc?rev=766551&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/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java?rev=766551&r1=766550&r2=766551&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenOneContinuumProjectBuilder.java
Mon Apr 20 00:20:37 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