mirror of https://github.com/sbt/sbt.git
commit
089a0efbca
|
|
@ -56,6 +56,8 @@ cygwinpath() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
echo "Loading $(dirname "$(realpath "$0")")/sbt-launch-lib.bash"
|
||||||
. "$(dirname "$(realpath "$0")")/sbt-launch-lib.bash"
|
. "$(dirname "$(realpath "$0")")/sbt-launch-lib.bash"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,9 @@ execRunner () {
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
exec "$@"
|
# THis used to be exec, but we loose the ability to re-hook stty then
|
||||||
|
# for cygwin... Maybe we should flag the feature here...
|
||||||
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
addJava () {
|
addJava () {
|
||||||
|
|
@ -182,16 +184,16 @@ run() {
|
||||||
execRunner "$java_cmd" \
|
execRunner "$java_cmd" \
|
||||||
${SBT_OPTS:-$default_sbt_opts} \
|
${SBT_OPTS:-$default_sbt_opts} \
|
||||||
$(get_mem_opts $sbt_mem) \
|
$(get_mem_opts $sbt_mem) \
|
||||||
${java_opts} \
|
${java_opts} \
|
||||||
${java_args[@]} \
|
${java_args[@]} \
|
||||||
-jar "$sbt_jar" \
|
-jar "$sbt_jar" \
|
||||||
"${sbt_commands[@]}" \
|
"${sbt_commands[@]}" \
|
||||||
"${residual_args[@]}"
|
"${residual_args[@]}"
|
||||||
|
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
|
|
||||||
# Clean up the terminal from cygwin hacks.
|
# Clean up the terminal from cygwin hacks.
|
||||||
if [[ "$IS_CYGWIN" == "true" ]]; then
|
if [[ "$CYGWIN_FLAG" == "true" ]]; then
|
||||||
stty icanon echo > /dev/null 2>&1
|
stty icanon echo > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
exit $exit_code
|
exit $exit_code
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue