Merge pull request #55 from sbt/fix/space-in-path

Fixes #53
This commit is contained in:
Josh Suereth 2013-07-30 16:50:58 -07:00
commit 089a0efbca
2 changed files with 9 additions and 5 deletions

View File

@ -56,6 +56,8 @@ cygwinpath() {
fi
}
echo "Loading $(dirname "$(realpath "$0")")/sbt-launch-lib.bash"
. "$(dirname "$(realpath "$0")")/sbt-launch-lib.bash"

View File

@ -56,7 +56,9 @@ execRunner () {
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 () {
@ -182,16 +184,16 @@ run() {
execRunner "$java_cmd" \
${SBT_OPTS:-$default_sbt_opts} \
$(get_mem_opts $sbt_mem) \
${java_opts} \
${java_opts} \
${java_args[@]} \
-jar "$sbt_jar" \
"${sbt_commands[@]}" \
"${residual_args[@]}"
"${residual_args[@]}"
exit_code=$?
# Clean up the terminal from cygwin hacks.
if [[ "$IS_CYGWIN" == "true" ]]; then
if [[ "$CYGWIN_FLAG" == "true" ]]; then
stty icanon echo > /dev/null 2>&1
fi
exit $exit_code