continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r344197 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
Date Mon, 14 Nov 2005 20:05:47 GMT
Author: evenisse
Date: Mon Nov 14 12:05:44 2005
New Revision: 344197

URL: http://svn.apache.org/viewcvs?rev=344197&view=rev
Log:
Store a build result when an internal error is occurred.

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/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java?rev=344197&r1=344196&r2=344197&view=diff
==============================================================================
--- 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
Mon Nov 14 12:05:44 2005
@@ -230,6 +230,25 @@
             {
                 getLogger().error( "Internal error while building the project.", ex );
             }
+
+            String error = ContinuumUtils.throwableToString( ex );
+
+            build.setError( error );
+
+            try
+            {
+                store.updateBuildResult( build );
+
+                build = store.getBuildResult( build.getId() );
+
+                project.setState( build.getState() );
+
+                store.updateProject( project );
+            }
+            catch ( Exception e )
+            {
+                getLogger().error( "Can't store updating project.", e );
+            }
         }
         finally
         {



Mime
View raw message