continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r577236 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
Date Wed, 19 Sep 2007 10:08:28 GMT
Author: evenisse
Date: Wed Sep 19 03:08:28 2007
New Revision: 577236

URL: http://svn.apache.org/viewvc?rev=577236&view=rev
Log:
Fix exception when user add a new default build definition

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

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java?rev=577236&r1=577235&r2=577236&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
Wed Sep 19 03:08:28 2007
@@ -107,9 +107,11 @@
                         if ( buildDefinition.getType() != null &&
                             buildDefinition.getType().equals( storedDefinition.getType()
) )
                         {
-                            storedDefinition.setDefaultForProject( false );
+                            //Required to get buil def from store because storedDefinition
is readonly
+                            BuildDefinition def = store.getBuildDefinition( storedDefinition.getId()
);
+                            def.setDefaultForProject( false );
 
-                            store.storeBuildDefinition( storedDefinition );
+                            store.storeBuildDefinition( def );
                         }
                     }
                 }



Mime
View raw message