maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [3/3] maven git commit: [MNG-6242] detect Cygwin/Mingw pseudo terminal for Jansi
Date Sun, 15 Oct 2017 08:17:26 GMT
[MNG-6242] detect Cygwin/Mingw pseudo terminal for Jansi

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

Branch: refs/heads/master
Commit: c19e9dcac3d200094c770521b9b1b10df76f26c4
Parents: 4f530c4
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Mon Sep 25 22:52:48 2017 +0200
Committer: Hervé Boutemy <hboutemy@apache.org>
Committed: Sun Oct 15 10:16:00 2017 +0200

----------------------------------------------------------------------
 apache-maven/src/bin/mvn | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/c19e9dca/apache-maven/src/bin/mvn
----------------------------------------------------------------------
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index fa6164b..e3a5848 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -188,6 +188,14 @@ export MAVEN_PROJECTBASEDIR
 MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
 export MAVEN_CMD_LINE_ARGS
 
+# detect cygwin or mingw pseudo-terminal for Jansi
+# workaround for https://github.com/fusesource/jansi-native/issues/11
+if $cygwin || $mingw; then
+  if [ -t 1 ]; then
+    MAVEN_OPTS="-Djansi.passthrough=true $MAVEN_OPTS"
+  fi
+fi
+
 exec "$JAVACMD" \
   $MAVEN_OPTS \
   $MAVEN_DEBUG_OPTS \


Mime
View raw message