This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.1
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 643d8d5dad478eebe1689ad0e2c1b4c9095ec310
Author: Oliver Lamy <[email protected]>
AuthorDate: Sat Nov 24 22:10:15 2007 +0000

    [MINVOKER-11] In case of error in bsh evaluation the error must be display
    this error is displayed with getLog().error in the mojo
    
    
    git-svn-id: 
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@597925
 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java 
b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index 1444404..a5d1077 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -25,7 +25,6 @@ import java.io.FileInputStream;
 import java.io.FileReader;
 import java.io.IOException;
 import java.io.PrintStream;
-import java.io.StringReader;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Iterator;
@@ -649,6 +648,9 @@ public class InvokerMojo
             }
             catch ( final EvalError e )
             {
+                String errorMessage = "error evaluating script " + 
basedir.getPath() + File.separatorChar
+                    + postBuildHookScript + ", " + e.getMessage();
+                getLog().error( errorMessage, e );
                 result = false;
             }
         }
@@ -729,6 +731,9 @@ public class InvokerMojo
             }
             catch ( final EvalError e )
             {
+                String errorMessage = "error evaluating script " + 
basedir.getPath() + File.separatorChar
+                    + postBuildHookScript + ", " + e.getMessage();
+                getLog().error( errorMessage, e );                
                 result = false;
             }
         }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to