maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherit...@apache.org
Subject [5/50] git commit: [MNG-5395] don't inject DefaultMavenPluginManager's logger into Mojos but create a dedicated logger with Mojo implementation name
Date Sat, 01 Dec 2012 14:50:01 GMT
[MNG-5395] don't inject DefaultMavenPluginManager's logger into Mojos
but create a dedicated logger with Mojo implementation name


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

Branch: refs/heads/feature/colorized-console/log4j2
Commit: ae4857816da2f7febdd4ecf95df52be4db1dc93d
Parents: 411e9f9
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Sat Dec 1 04:27:23 2012 +0100
Committer: Arnaud Héritier <aheritier@exoplatform.com>
Committed: Sat Dec 1 13:53:43 2012 +0100

----------------------------------------------------------------------
 .../plugin/internal/DefaultMavenPluginManager.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/ae485781/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
b/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
index 6caa6b6..a496dca 100644
--- a/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
+++ b/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
@@ -523,7 +523,8 @@ public class DefaultMavenPluginManager
 
             if ( mojo instanceof Mojo )
             {
-                ( (Mojo) mojo ).setLog( log );
+                Logger mojoLogger = loggerManager.getLoggerForComponent( mojoDescriptor.getImplementation()
);
+                ( (Mojo) mojo ).setLog( new DefaultLog( mojoLogger ) );
             }
 
             Xpp3Dom dom = mojoExecution.getConfiguration();


Mime
View raw message