mirror of https://github.com/sbt/sbt.git
Initial fixes for cygwin issues #50
This commit is contained in:
parent
e5972108a3
commit
d50c597318
|
|
@ -8,6 +8,7 @@
|
||||||
realpath () {
|
realpath () {
|
||||||
(
|
(
|
||||||
TARGET_FILE="$1"
|
TARGET_FILE="$1"
|
||||||
|
FIX_CYGPATH="$2"
|
||||||
|
|
||||||
cd $(dirname "$TARGET_FILE")
|
cd $(dirname "$TARGET_FILE")
|
||||||
TARGET_FILE=$(basename "$TARGET_FILE")
|
TARGET_FILE=$(basename "$TARGET_FILE")
|
||||||
|
|
@ -22,7 +23,11 @@ realpath () {
|
||||||
done
|
done
|
||||||
|
|
||||||
# make sure we grab the actual windows path, instead of cygwin's path.
|
# make sure we grab the actual windows path, instead of cygwin's path.
|
||||||
echo $(cygwinpath "$(pwd -P)/$TARGET_FILE")
|
if [[ "x$FIX_CYGPATH" != "x" ]]; then
|
||||||
|
echo "$(cygwinpath "$(pwd -P)/$TARGET_FILE")"
|
||||||
|
else
|
||||||
|
echo "$(pwd -P)/$TARGET_FILE"
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -51,11 +56,7 @@ cygwinpath() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$CYGWIN_FLAG" == "true" ]]; then
|
. $(dirname "$(realpath "$0")")/sbt-launch-lib.bash
|
||||||
. $(dirname "$(cygpath "$(realpath "$0")")")/sbt-launch-lib.bash
|
|
||||||
else
|
|
||||||
. $(dirname "$(realpath "$0")")/sbt-launch-lib.bash
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
|
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,7 @@ dlog () {
|
||||||
}
|
}
|
||||||
|
|
||||||
jar_file () {
|
jar_file () {
|
||||||
# TODO - Is this where we want the launch jar?
|
echo "$(cygwinpath "${sbt_home}/bin/sbt-launch.jar")"
|
||||||
echo "${sbt_home}/bin/sbt-launch.jar"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
acquire_sbt_jar () {
|
acquire_sbt_jar () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue