[maven-invoker-plugin] branch master updated: [MINVOKER-225] strange message ordering in case of post-build script failure

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-invoker-plugin] branch master updated: [MINVOKER-225] strange message ordering in case of post-build script failure

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

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ac7c58  [MINVOKER-225] strange message ordering in case of post-build script failure
7ac7c58 is described below

commit 7ac7c580bc666873d029989e64b2a5e75ae31b04
Author: rfscholte <[hidden email]>
AuthorDate: Sat Jan 12 13:43:02 2019 +0100

    [MINVOKER-225] strange message ordering in case of post-build script failure
---
 .../java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
index e2291ed..71e7e78 100644
--- a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
@@ -1734,8 +1734,8 @@ public abstract class AbstractInvokerMojo
 
             if ( !suppressSummaries )
             {
-                getLog().info( pad( buildJob ).failure( "ERROR" ).a( ' ' ) + formatTime( buildJob.getTime() ) );
                 getLog().info( "  " + e.getMessage() );
+                getLog().info( pad( buildJob ).failure( "ERROR" ).a( ' ' ) + formatTime( buildJob.getTime() ) );
             }
         }
         catch ( RunFailureException e )
@@ -1745,8 +1745,8 @@ public abstract class AbstractInvokerMojo
 
             if ( !suppressSummaries )
             {
-                getLog().info( pad( buildJob ).failure( "FAILED" ).a( ' ' ) + formatTime( buildJob.getTime() ) );
                 getLog().info( "  " + e.getMessage() );
+                getLog().info( pad( buildJob ).failure( "FAILED" ).a( ' ' ) + formatTime( buildJob.getTime() ) );
             }
         }
         finally