[MNG-6242] detect Cygwin/Mingw pseudo terminal for Jansi

This commit is contained in:
Hervé Boutemy 2017-09-25 22:52:48 +02:00
parent 4f530c4f00
commit c19e9dcac3
1 changed files with 8 additions and 0 deletions

View File

@ -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 \