File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ truncated_params="${*#-}"
53
53
# options_indicator != 0 if at least one parameter is not an option
54
54
options_indicator=$(( ${# all_params} - ${# truncated_params} - $# ))
55
55
56
- [ -n " $SCALA_OPTS " ] && set -- " $@ " $SCALA_OPTS
56
+ [ -n " $SCALA_OPTS " ] && set -- $SCALA_OPTS " $@ "
57
57
58
58
while [[ $# -gt 0 ]]; do
59
59
case " $1 " in
@@ -75,13 +75,17 @@ while [[ $# -gt 0 ]]; do
75
75
with_compiler=true
76
76
shift
77
77
;;
78
- @* |-color:* |-compile-only )
78
+ @* |-color:* )
79
79
addDotcOptions " ${1} "
80
80
shift
81
81
;;
82
82
-save|-savecompiled)
83
83
save_compiled=true
84
- addDotcOptions " ${1} "
84
+ dotc_script_options+=(" $1 " )
85
+ shift
86
+ ;;
87
+ -compile-only)
88
+ dotc_script_options+=(" $1 " )
85
89
shift
86
90
;;
87
91
-d)
@@ -115,6 +119,7 @@ if [ $execute_script == true ]; then
115
119
if [ " $CLASS_PATH " ]; then
116
120
cp_arg=" -classpath \" $CLASS_PATH \" "
117
121
fi
122
+ java_options+=(${dotc_script_options} )
118
123
setScriptName=" -Dscript.path=$target_script "
119
124
target_jar=" ${target_script% .* } .jar"
120
125
if [[ $save_compiled == true && " $target_jar " -nt " $target_script " ]]; then
You can’t perform that action at this time.
0 commit comments