You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/09/25 22:14:41 UTC
maven git commit: [MNG-6242] detect Cygwin/Mingw pseudo terminal for
Jansi
Repository: maven
Updated Branches:
refs/heads/MNG-6242 [created] 9043305f2
[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/9043305f
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/9043305f
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/9043305f
Branch: refs/heads/MNG-6242
Commit: 9043305f249e4da75445f08d0b3b830a9134fc4a
Parents: 542a7a8
Author: Hervé Boutemy <hb...@apache.org>
Authored: Mon Sep 25 22:52:48 2017 +0200
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Tue Sep 26 00:14:26 2017 +0200
----------------------------------------------------------------------
apache-maven/src/bin/mvn | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/9043305f/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 \