continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r499916 - /maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Thu, 25 Jan 2007 19:07:06 GMT
Author: rinku
Date: Thu Jan 25 11:07:05 2007
New Revision: 499916

URL: http://svn.apache.org/viewvc?view=rev&rev=499916
Log:
o  updates to service methods and intValue -> longValue

Modified:
    maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&rev=499916&r1=499915&r2=499916
==============================================================================
--- maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Thu Jan 25 11:07:05 2007
@@ -622,7 +622,7 @@
                     " doens't have a default build definition, this should be impossible,
parent should have default definition set." );
             }
 
-            buildProject( project, buildDefId.intValue(), trigger );
+            buildProject( project, buildDefId.longValue(), trigger );
         }
     }
 
@@ -784,10 +784,10 @@
                 {
                     Long buildDefId = (Long) buildDefinitionIterator.next();
 
-                    if ( buildDefId != null && !isInBuildingQueue( project.getId(),
buildDefId.intValue() ) &&
+                    if ( buildDefId != null && !isInBuildingQueue( project.getId(),
buildDefId.longValue() ) &&
                         !isInCheckoutQueue( project.getId() ) )
                     {
-                        buildProject( project, buildDefId.intValue(), ContinuumProjectState.TRIGGER_SCHEDULED,
false );
+                        buildProject( project, buildDefId.longValue(), ContinuumProjectState.TRIGGER_SCHEDULED,
false );
                     }
                 }
             }
@@ -805,10 +805,10 @@
             {
                 Long buildDefId = (Long) buildDefinitionIterator.next();
 
-                if ( buildDefId != null && !isInBuildingQueue( project.getId(), buildDefId.intValue()
) &&
+                if ( buildDefId != null && !isInBuildingQueue( project.getId(), buildDefId.longValue()
) &&
                     !isInCheckoutQueue( project.getId() ) )
                 {
-                    buildProject( project, buildDefId.intValue(), ContinuumProjectState.TRIGGER_SCHEDULED,
false );
+                    buildProject( project, buildDefId.longValue(), ContinuumProjectState.TRIGGER_SCHEDULED,
false );
                 }
             }
         }
@@ -1116,13 +1116,13 @@
     // Shell projects
     // ----------------------------------------------------------------------
 
-    public int addProject( Project project, String executorId )
+    public long addProject( Project project, String executorId )
         throws ContinuumException
     {
         return addProject( project, executorId, getDefaultProjectGroup().getId() );
     }
 
-    public int addProject( Project project, String executorId, long groupId )
+    public long addProject( Project project, String executorId, long groupId )
         throws ContinuumException
     {
         project.setExecutorId( executorId );
@@ -1160,7 +1160,7 @@
     // Activities. These should end up as workflows in werkflow
     // ----------------------------------------------------------------------
 
-    private int executeAddProjectFromScmActivity( Project project, long groupId )
+    private long executeAddProjectFromScmActivity( Project project, long groupId )
         throws ContinuumException
     {
         ProjectGroup projectGroup = getProjectGroupWithBuildDetails( groupId );
@@ -1183,7 +1183,7 @@
 
         executeAction( "add-project-to-checkout-queue", context );
 
-        return ( (Long) context.get( AbstractContinuumAction.KEY_PROJECT_ID ) ).intValue();
+        return ( (Long) context.get( AbstractContinuumAction.KEY_PROJECT_ID ) ).longValue();
     }
 
     /**



Mime
View raw message