continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r495540 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
Date Fri, 12 Jan 2007 10:41:42 GMT
Author: evenisse
Date: Fri Jan 12 02:41:39 2007
New Revision: 495540

URL: http://svn.apache.org/viewvc?view=rev&rev=495540
Log:
[CONTINUUM-1103] Store buildFresh in build definition
Submitted by: Teodoro Cue Jr.

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?view=diff&rev=495540&r1=495539&r2=495540
==============================================================================
--- 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
Fri Jan 12 02:41:39 2007
@@ -22,12 +22,12 @@
 import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.initialization.DefaultContinuumInitializer;
 import org.apache.maven.continuum.model.project.BuildDefinition;
+import org.apache.maven.continuum.model.project.Project;
 import org.apache.maven.continuum.model.project.ProjectGroup;
 import org.apache.maven.continuum.model.project.Schedule;
-import org.apache.maven.continuum.model.project.Project;
+import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
 import org.apache.maven.continuum.store.ContinuumStore;
 import org.apache.maven.continuum.store.ContinuumStoreException;
-import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
 
 import java.util.Iterator;
 import java.util.List;
@@ -55,8 +55,7 @@
             // if buildDefinition passed in is not default then we are done
             if ( buildDefinition.isDefaultForProject() )
             {
-                BuildDefinition storedDefinition =
-                    store.getDefaultBuildDefinitionForProject( project.getId() );
+                BuildDefinition storedDefinition = store.getDefaultBuildDefinitionForProject(
project.getId() );
 
                 if ( storedDefinition != null )
                 {
@@ -68,7 +67,8 @@
         }
         catch ( ContinuumObjectNotFoundException nfe )
         {
-            getLogger().debug( getClass().getName() + ": safely ignoring the resetting of
old build definition becuase it didn't exist" );
+            getLogger().debug( getClass().getName() +
+                ": safely ignoring the resetting of old build definition becuase it didn't
exist" );
         }
         catch ( ContinuumStoreException cse )
         {
@@ -78,7 +78,7 @@
 
     /**
      * resolves build definition defaults between project groups and projects
-     *
+     * <p/>
      * 1) project groups have default build definitions
      * 2) if project has default build definition, that overrides project group definition
      * 3) changing parent default build definition does not effect project if it has a default
declared
@@ -93,13 +93,12 @@
     {
         try
         {
-            BuildDefinition storedDefinition =
-                                store.getDefaultBuildDefinitionForProjectGroup( projectGroup.getId()
);
+            BuildDefinition storedDefinition = store.getDefaultBuildDefinitionForProjectGroup(
projectGroup.getId() );
 
             // if buildDefinition passed in is not default then we are done
             if ( buildDefinition.isDefaultForProject() )
             {
-                if ( storedDefinition != null && storedDefinition.getId() != buildDefinition.getId()
)  
+                if ( storedDefinition != null && storedDefinition.getId() != buildDefinition.getId()
)
                 {
                     storedDefinition.setDefaultForProject( false );
 
@@ -111,8 +110,10 @@
                 //make sure we are not wacking out default build definition, that would be
bad
                 if ( buildDefinition.getId() == storedDefinition.getId() )
                 {
-                    getLogger().info( "processing this build definition would result in no
default build definition for project group" );
-                    throw new ContinuumException( "processing this build definition would
result in no default build definition for project group" );
+                    getLogger().info(
+                        "processing this build definition would result in no default build
definition for project group" );
+                    throw new ContinuumException(
+                        "processing this build definition would result in no default build
definition for project group" );
                 }
             }
         }
@@ -153,6 +154,7 @@
                 storedDefinition.setGoals( buildDefinition.getGoals() );
                 storedDefinition.setArguments( buildDefinition.getArguments() );
                 storedDefinition.setBuildFile( buildDefinition.getBuildFile() );
+                storedDefinition.setBuildFresh( buildDefinition.isBuildFresh() );
 
                 // special case of this is resolved in the resolveDefaultBuildDefinitionsForProjectGroup
method
                 storedDefinition.setDefaultForProject( buildDefinition.isDefaultForProject()
);



Mime
View raw message