mirror of https://github.com/apache/maven.git
[MNG-6242] detect Cygwin/Mingw pseudo terminal for Jansi
This commit is contained in:
parent
4f530c4f00
commit
c19e9dcac3
|
@ -188,6 +188,14 @@ export MAVEN_PROJECTBASEDIR
|
||||||
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
|
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
|
||||||
export MAVEN_CMD_LINE_ARGS
|
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" \
|
exec "$JAVACMD" \
|
||||||
$MAVEN_OPTS \
|
$MAVEN_OPTS \
|
||||||
$MAVEN_DEBUG_OPTS \
|
$MAVEN_DEBUG_OPTS \
|
||||||
|
|
Loading…
Reference in New Issue