You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:36:21 UTC

[maven-invoker-plugin] 14/22: [MINVOKER-11] In case of error in bsh evaluation the error must be display this error is displayed with getLog().error in the mojo

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 <ol...@apache.org>
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
"commits@maven.apache.org" <co...@maven.apache.org>.