continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r219784 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/ContinuumBuildJob.java
Date Tue, 19 Jul 2005 22:21:21 GMT
Author: jvanzyl
Date: Tue Jul 19 15:21:19 2005
New Revision: 219784

URL: http://svn.apache.org/viewcvs?rev=219784&view=rev
Log:
o fix the build job as the schedules are not into full effect yet.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/ContinuumBuildJob.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/ContinuumBuildJob.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/ContinuumBuildJob.java?rev=219784&r1=219783&r2=219784&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/ContinuumBuildJob.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/ContinuumBuildJob.java
Tue Jul 19 15:21:19 2005
@@ -11,10 +11,11 @@
 
 import java.util.Iterator;
 import java.util.Set;
+import java.util.Collection;
 
 /**
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
- * @version $Id:$
+ * @version $Id$
  */
 public class ContinuumBuildJob
     implements Job
@@ -35,13 +36,23 @@
 
         Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM
);
 
-        ContinuumSchedule schedule = (ContinuumSchedule) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.SCHEDULE
);
+        //ContinuumSchedule schedule = (ContinuumSchedule) jobDetail.getJobDataMap().get(
ContinuumSchedulerConstants.SCHEDULE );
 
         // ----------------------------------------------------------------------
         // Lookup all projects that belong to this schedule
         // ----------------------------------------------------------------------
 
-        Set projects = schedule.getProjects();
+        //Set projects = schedule.getProjects();
+
+        Collection projects = null;
+        try
+        {
+            projects = continuum.getProjects();
+        }
+        catch ( ContinuumException e )
+        {
+            logger.error( "Error retrieving projects.", e );
+        }
 
         for ( Iterator i = projects.iterator(); i.hasNext(); )
         {



Mime
View raw message