continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r494356 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
Date Tue, 09 Jan 2007 10:16:26 GMT
Author: evenisse
Date: Tue Jan  9 02:16:25 2007
New Revision: 494356

URL: http://svn.apache.org/viewvc?view=rev&rev=494356
Log:
[CONTINUUM-1116] Print error in the build result and logs when the parent pom doesn't exist
Submitted by: Lester Ecarma

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=494356&r1=494355&r2=494356
==============================================================================
--- 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
Tue Jan  9 02:16:25 2007
@@ -132,8 +132,16 @@
 
             Map actionContext = context.getActionContext();
 
-            performAction( "update-project-from-working-directory", context );
-
+            try
+            {
+                performAction( "update-project-from-working-directory", context );
+            }
+            catch ( TaskExecutionException e )
+            {
+                //just log the error but don't stop the build from progressing in order not
to suppress any build result messages there 
+                getLogger().error( "Error executing action update-project-from-working-directory
'", e );
+            }
+            
             performAction( "execute-builder", context );
 
             performAction( "deploy-artifact", context );
@@ -422,6 +430,7 @@
         catch ( Exception e )
         {
             exception = new TaskExecutionException( "Error executing action '" + actionName
+ "'", e );
+            error = ContinuumUtils.throwableToString( exception );
         }
 
         // TODO: clean this up. We catch the original exception from the action, and then
update the buildresult



Mime
View raw message