You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2016/06/14 18:29:36 UTC

maven git commit: [MNG-6043] Colorization is disabled too late in batch mode

Repository: maven
Updated Branches:
  refs/heads/master ded1379eb -> ecdb0bc2b


[MNG-6043] Colorization is disabled too late in batch mode


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

Branch: refs/heads/master
Commit: ecdb0bc2ba3ebdad837b6794315b64c64854f5cf
Parents: ded1379
Author: Michael Osipov <mi...@apache.org>
Authored: Tue Jun 14 20:26:13 2016 +0200
Committer: Michael Osipov <mi...@apache.org>
Committed: Tue Jun 14 20:29:15 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/maven/cli/MavenCli.java           | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/ecdb0bc2/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
----------------------------------------------------------------------
diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
index 045381b..b07fdc9 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
@@ -474,6 +474,11 @@ public class MavenCli
         // else fall back to default log level specified in conf
         // see https://issues.apache.org/jira/browse/MNG-2570
 
+        if ( cliRequest.commandLine.hasOption( CLIManager.BATCH_MODE ) )
+        {
+            Ansi.setEnabled( false );
+        }
+
         if ( cliRequest.commandLine.hasOption( CLIManager.LOG_FILE ) )
         {
             File logFile = new File( cliRequest.commandLine.getOptionValue( CLIManager.LOG_FILE ) );
@@ -1304,7 +1309,6 @@ public class MavenCli
         if ( commandLine.hasOption( CLIManager.BATCH_MODE ) )
         {
             request.setInteractiveMode( false );
-            Ansi.setEnabled( false );
         }
 
         boolean noSnapshotUpdates = false;