continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r578041 - /maven/continuum/trunk/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Date Fri, 21 Sep 2007 10:10:41 GMT
Author: evenisse
Date: Fri Sep 21 03:10:40 2007
New Revision: 578041

URL: http://svn.apache.org/viewvc?rev=578041&view=rev
Log:
Fix forced build when build def types are empty after a migration

Modified:
    maven/continuum/trunk/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java

Modified: maven/continuum/trunk/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java?rev=578041&r1=578040&r2=578041&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
(original)
+++ maven/continuum/trunk/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Fri Sep 21 03:10:40 2007
@@ -19,6 +19,7 @@
  * under the License.
  */
 
+import org.apache.maven.continuum.execution.ContinuumBuildExecutorConstants;
 import org.apache.maven.continuum.model.project.BuildDefinition;
 import org.apache.maven.continuum.model.project.BuildResult;
 import org.apache.maven.continuum.model.project.Project;
@@ -638,7 +639,8 @@
 
             for ( BuildDefinition bdef : bds )
             {
-                if ( p.getExecutorId().equals( bdef.getType() ) )
+                if ( p.getExecutorId().equals( bdef.getType() ) || ( StringUtils.isEmpty(
bdef.getType() ) &&
+                    ContinuumBuildExecutorConstants.MAVEN_TWO_BUILD_EXECUTOR.equals( p.getExecutorId()
) ) )
                 {
                     return bdef;
                 }



Mime
View raw message