You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ri...@apache.org on 2007/01/19 21:02:01 UTC
svn commit: r497930 - in
/maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller:
BuildController.java DefaultBuildController.java
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 );