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

[08/20] maven git commit: [MNG-6041] Option -l does not disables the colorized output.

[MNG-6041] Option -l does not disables the colorized output.


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

Branch: refs/heads/MNG-6006
Commit: c786ff3d1b3f702e831cbaa5e09c75d7d8ee4f0c
Parents: 92334a1
Author: rfscholte <rf...@apache.org>
Authored: Mon Jun 13 21:03:45 2016 +0200
Committer: rfscholte <rf...@apache.org>
Committed: Mon Jun 13 21:03:45 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/maven/blob/c786ff3d/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 38caf83..045381b 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
@@ -479,6 +479,8 @@ public class MavenCli
             File logFile = new File( cliRequest.commandLine.getOptionValue( CLIManager.LOG_FILE ) );
             logFile = resolveFile( logFile, cliRequest.workingDirectory );
 
+            Ansi.setEnabled( false );
+
             // redirect stdout and stderr to file
             try
             {
@@ -1315,7 +1317,7 @@ public class MavenCli
         //
         // ----------------------------------------------------------------------
 
-        @SuppressWarnings( "unchecked" ) List<String> goals = commandLine.getArgList();
+        List<String> goals = commandLine.getArgList();
 
         boolean recursive = true;