You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ev...@apache.org on 2007/01/09 11:16:26 UTC
svn commit: r494356 -
/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
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