mirror of https://github.com/sbt/sbt.git
use JAVA_OPTS instead of java_opts.
This commit is contained in:
parent
80616ea412
commit
10e95ef240
|
|
@ -73,9 +73,9 @@ addDebugger () {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_mem_opts () {
|
get_mem_opts () {
|
||||||
# if we detect any of these settings in ${java_opts} we need to NOT output our settings.
|
# if we detect any of these settings in ${JAVA_OPTS} we need to NOT output our settings.
|
||||||
# The reason is the Xms/Xmx, if they don't line up, cause errors.
|
# The reason is the Xms/Xmx, if they don't line up, cause errors.
|
||||||
if [[ "${java_opts}" == *-Xmx* ]] || [[ "${java_opts}" == *-Xms* ]] || [[ "${java_opts}" == *-XX:MaxPermSize* ]] || [[ "${java_opts}" == *-XX:MaxMetaspaceSize* ]] || [[ "${java_opts}" == *-XX:ReservedCodeCacheSize* ]]; then
|
if [[ "${JAVA_OPTS}" == *-Xmx* ]] || [[ "${JAVA_OPTS}" == *-Xms* ]] || [[ "${JAVA_OPTS}" == *-XX:MaxPermSize* ]] || [[ "${JAVA_OPTS}" == *-XX:MaxMetaspaceSize* ]] || [[ "${JAVA_OPTS}" == *-XX:ReservedCodeCacheSize* ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
# a ham-fisted attempt to move some memory settings in concert
|
# a ham-fisted attempt to move some memory settings in concert
|
||||||
|
|
@ -188,7 +188,7 @@ 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[@]}" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue