From continuum-commits-return-2928-apmail-maven-continuum-commits-archive=maven.apache.org@maven.apache.org Fri Jan 19 20:03:07 2007 Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 80954 invoked from network); 19 Jan 2007 20:03:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2007 20:03:07 -0000 Received: (qmail 22075 invoked by uid 500); 19 Jan 2007 20:03:13 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 22061 invoked by uid 500); 19 Jan 2007 20:03:13 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 22048 invoked by uid 99); 19 Jan 2007 20:03:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 12:03:13 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 12:03:06 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 7E2F91A981A; Fri, 19 Jan 2007 12:02:01 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r497930 - in /maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller: BuildController.java DefaultBuildController.java Date: Fri, 19 Jan 2007 20:02:01 -0000 To: continuum-commits@maven.apache.org From: rinku@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070119200201.7E2F91A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rinku Date: Fri Jan 19 12:02:00 2007 New Revision: 497930 URL: http://svn.apache.org/viewvc?view=rev&rev=497930 Log: o fixed build controller Modified: maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildController.java maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java Modified: maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildController.java URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildController.java?view=diff&rev=497930&r1=497929&r2=497930 ============================================================================== --- maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildController.java (original) +++ maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildController.java Fri Jan 19 12:02:00 2007 @@ -29,6 +29,6 @@ { String ROLE = BuildController.class.getName(); - void build( int projectId, int buildDefinitionId, int trigger ) + void build( long projectId, long buildDefinitionId, int trigger ) throws TaskExecutionException; } Modified: maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java?view=diff&rev=497930&r1=497929&r2=497930 ============================================================================== --- maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java (original) +++ maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java Fri Jan 19 12:02:00 2007 @@ -85,7 +85,7 @@ * @param trigger * @throws TaskExecutionException */ - public void build( int projectId, int buildDefinitionId, int trigger ) + public void build( long projectId, long buildDefinitionId, int trigger ) throws TaskExecutionException { getLogger().info( "Initializing build" ); @@ -306,7 +306,7 @@ * @return * @throws TaskExecutionException */ - protected BuildContext initializeBuildContext( int projectId, int buildDefinitionId, int trigger ) + protected BuildContext initializeBuildContext( long projectId, long buildDefinitionId, int trigger ) throws TaskExecutionException { BuildContext context = new BuildContext(); @@ -339,11 +339,11 @@ Map actionContext = context.getActionContext(); - actionContext.put( AbstractContinuumAction.KEY_PROJECT_ID, new Integer( projectId ) ); + actionContext.put( AbstractContinuumAction.KEY_PROJECT_ID, new Long( projectId ) ); actionContext.put( AbstractContinuumAction.KEY_PROJECT, context.getProject() ); - actionContext.put( AbstractContinuumAction.KEY_BUILD_DEFINITION_ID, new Integer( buildDefinitionId ) ); + actionContext.put( AbstractContinuumAction.KEY_BUILD_DEFINITION_ID, new Long( buildDefinitionId ) ); actionContext.put( AbstractContinuumAction.KEY_BUILD_DEFINITION, context.getBuildDefinition() ); @@ -689,7 +689,7 @@ } } - private ScmResult getOldScmResult( int projectId, long fromDate ) + private ScmResult getOldScmResult( long projectId, long fromDate ) { List results = store.getBuildResultsForProject( projectId, fromDate );