continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1082418 - /continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/DefaultDistributedBuildService.java
Date Thu, 17 Mar 2011 07:28:50 GMT
Author: ctan
Date: Thu Mar 17 07:28:50 2011
New Revision: 1082418

URL: http://svn.apache.org/viewvc?rev=1082418&view=rev
Log:
[CONTINUUM-2616] set project's old state to the its current state so when the build is cancelled,
project will be set to it's previous state

Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/DefaultDistributedBuildService.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/DefaultDistributedBuildService.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/DefaultDistributedBuildService.java?rev=1082418&r1=1082417&r2=1082418&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/DefaultDistributedBuildService.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/DefaultDistributedBuildService.java
Thu Mar 17 07:28:50 2011
@@ -221,6 +221,7 @@ public class DefaultDistributedBuildServ
         try
         {
             Project project = projectDao.getProject( projectId );
+            project.setOldState( project.getState() );
             project.setState( ContinuumProjectState.BUILDING );
             projectDao.updateProject( project );
         }



Mime
View raw message