Revert "Handle SBT_OPTS in bash"

This reverts commit ea93158ae3.
This commit is contained in:
Eugene Yokota 2018-07-30 18:43:53 -04:00
parent 0e2adfb5f4
commit 53e008a25d
1 changed files with 0 additions and 26 deletions

View File

@ -253,24 +253,6 @@ checkJava() {
fi
}
convertSbtOpts () {
while [[ $# -gt 0 ]]; do
case "$1" in
-no-colors) converted_opts="${converted_opts} -Dsbt.log.noformat=true" && shift ;;
-no-share) converted_opts="${converted_opts} $noshare_opts" && shift ;;
-no-global) converted_opts="${converted_opts} -Dsbt.global.base=$(pwd)/project/.sbtboot" && shift ;;
-sbt-boot) require_arg path "$1" "$2" && converted_opts="${converted_opts} -Dsbt.boot.directory=$2" && shift 2 ;;
-sbt-dir) require_arg path "$1" "$2" && converted_opts="${converted_opts} -Dsbt.global.base=$2" && shift 2 ;;
-debug-inc) converted_opts="${converted_opts} -Dxsbt.inc.debug=true" && shift ;;
-batch) exec </dev/null && shift ;;
-sbt-create) sbt_create=true && shift ;;
*) addResidual "$1" && shift ;;
esac
done
}
copyRt() {
local at_least_9="$(expr $java_version ">=" 9)"
if [[ "$at_least_9" == "1" ]]; then
@ -312,14 +294,6 @@ run() {
# TODO - java check should be configurable...
checkJava "6"
# handle SBT_OPTS options
if [ -n "$SBT_OPTS" ]; then
converted_opts=""
arrayed_sbt_opts=($SBT_OPTS)
convertSbtOpts ${arrayed_sbt_opts[@]}
SBT_OPTS=$converted_opts
fi
# Java 9 support
copyRt