continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1043316 - /continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Date Wed, 08 Dec 2010 06:00:52 GMT
Author: ctan
Date: Wed Dec  8 06:00:51 2010
New Revision: 1043316

URL: http://svn.apache.org/viewvc?rev=1043316&view=rev
Log:
[CONTINUUM-2595] added a check if distributed build is enabled so we can call the appropriate
class to retrieve the projects in build queue

Submitted By: Gwen Harold Autencio

Modified:
    continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java

Modified: continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java?rev=1043316&r1=1043315&r2=1043316&view=diff
==============================================================================
--- continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
(original)
+++ continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Wed Dec  8 06:00:51 2010
@@ -1189,8 +1189,17 @@ public class ContinuumServiceImpl
     {
         try
         {
-            Map<String, List<org.apache.continuum.taskqueue.BuildProjectTask>>
buildTasks =
-                parallelBuildsManager.getProjectsInBuildQueues();
+            Map<String, List<org.apache.continuum.taskqueue.BuildProjectTask>>
buildTasks;
+            
+            if( continuum.getConfiguration().isDistributedBuildEnabled() )
+            {
+                buildTasks = distributedBuildManager.getProjectsInBuildQueue();
+            }
+            else
+            {
+                buildTasks = parallelBuildsManager.getProjectsInBuildQueues();
+            }
+                
             Set<String> keys = buildTasks.keySet();
             List<org.apache.continuum.taskqueue.BuildProjectTask> convertedTasks =
                 new ArrayList<org.apache.continuum.taskqueue.BuildProjectTask>();



Mime
View raw message