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 "Reactor Build Order" list
Date Sun, 10 Dec 2017 19:56:22 GMT
Repository: maven
Updated Branches:
  refs/heads/MNG-6308_display_packaging 762682164 -> 9f136f6d5


[MNG-6308] display packaging in "Reactor Build Order" list

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

Branch: refs/heads/MNG-6308_display_packaging
Commit: 9f136f6d52ad33b6868f4b6d757bbc0683668105
Parents: 7626821
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Sun Dec 10 20:56:18 2017 +0100
Committer: Hervé Boutemy <hboutemy@apache.org>
Committed: Sun Dec 10 20:56:18 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/maven/blob/9f136f6d/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 0810b36..f5f1ec5 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
@@ -114,7 +114,9 @@ public class ExecutionEventLogger
             final List<MavenProject> projects = event.getSession().getProjects();
             for ( MavenProject project : projects )
             {
-                logger.info( project.getName() );
+                int len = LINE_LENGTH - project.getName().length() - project.getPackaging().length()
- 2;
+                logger.info( project.getName() + chars( ' ', ( len > 0 ) ? len : 1 ) +
'[' + project.getPackaging()
+                    + ']' );
             }
 
             totalProjects = projects.size();


Mime
View raw message