continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r744812 - /continuum/trunk/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
Date Mon, 16 Feb 2009 05:45:03 GMT
Author: ctan
Date: Mon Feb 16 05:45:03 2009
New Revision: 744812

URL: http://svn.apache.org/viewvc?rev=744812&view=rev
Log:
[CONTINUUM-2070] compare last commit date of the previous build result with the last commit
date of the current build result to know if project should build

Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java?rev=744812&r1=744811&r2=744812&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
Mon Feb 16 05:45:03 2009
@@ -291,19 +291,18 @@
         return false;
     }
 
-    public boolean removeFromDistributedBuildQueue( int projectGroupId, String scmRootAddress
)
+    public void removeFromDistributedBuildQueue( int projectGroupId, String scmRootAddress
)
         throws TaskQueueManagerException
     {
         List<PrepareBuildProjectsTask> queue = getDistributedBuildProjectsInQueue();
 
         for ( PrepareBuildProjectsTask task : queue )
         {
-            if ( task != null && task.getProjectGroupId() == projectGroupId &&
task.getScmRootAddress().equals( scmRootAddress ) )
+            if ( task.getProjectGroupId() == projectGroupId && task.getScmRootAddress().equals(
scmRootAddress ) )
             {
-                return distributedBuildQueue.remove( task );
+                distributedBuildQueue.remove( task );
             }
         }
-        return false;
     }
 
     public boolean removeFromPurgeQueue( int purgeConfigId )



Mime
View raw message