maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject maven git commit: [MNG-6308] display packaging in "building" message
Date Sun, 10 Dec 2017 06:59:37 GMT
Repository: maven
Updated Branches:
  refs/heads/MNG-6308_display_packaging [created] 762682164


[MNG-6308] display packaging in "building" message

Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/76268216
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/76268216
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/76268216

Branch: refs/heads/MNG-6308_display_packaging
Commit: 762682164e2935bc94e91f7b2d069cde32aea53b
Parents: 866582d
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Sun Dec 10 07:59:13 2017 +0100
Committer: Hervé Boutemy <hboutemy@apache.org>
Committed: Sun Dec 10 07:59:13 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/maven/cli/event/ExecutionEventLogger.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/76268216/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
----------------------------------------------------------------------
diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
index 513d56a..0810b36 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
@@ -283,9 +283,11 @@ public class ExecutionEventLogger
                 int pad = LINE_LENGTH - building.length() - progress.length();
 
                 infoMain( building + ( ( pad > 0 ) ? chars( ' ', pad ) : "" ) + progress
);
-            } // else what's the point
+            }
 
-            infoLine( '-' );
+            // display packaging at end of line
+            String packaging = '[' + event.getProject().getPackaging() + ']';
+            infoMain( chars( '-', LINE_LENGTH - packaging.length() ) + packaging );
         }
     }
 


Mime
View raw message