continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r453025 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
Date Wed, 04 Oct 2006 21:07:08 GMT
Author: evenisse
Date: Wed Oct  4 14:07:08 2006
New Revision: 453025

URL: http://svn.apache.org/viewvc?view=rev&rev=453025
Log:
Set the project state to the build result state if it exist

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java?view=diff&rev=453025&r1=453024&r2=453025
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
Wed Oct  4 14:07:08 2006
@@ -170,7 +170,17 @@
             {
                 try
                 {
-                    project.setState( ContinuumProjectState.ERROR );
+                    String s = (String) context.getActionContext().get( AbstractContinuumAction.KEY_BUILD_ID
);
+
+                    if ( s != null )
+                    {
+                        BuildResult buildResult = store.getBuildResult( Integer.valueOf(
s ).intValue() );
+                        project.setState( buildResult.getState() );
+                    }
+                    else
+                    {
+                        project.setState( ContinuumProjectState.ERROR );
+                    }
 
                     store.updateProject( project );
                 }



Mime
View raw message