File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ addResidual () {
36
36
residual_args+=(" $1 " )
37
37
}
38
38
39
- run_repl=true
40
- run_app=flase
39
+ addCustomClassPath () {
40
+ classpath_args+=(" $1 :" )
41
+ }
42
+
43
+ run_repl=false
44
+
41
45
while [[ $# -gt 0 ]]; do
42
46
key=$1
43
47
case $key in
@@ -46,22 +50,28 @@ case $key in
46
50
shift
47
51
;;
48
52
-classpath)
49
- CLASS_PATH+= " : $2 "
53
+ addCustomClassPath " $2 "
50
54
shift
51
55
shift
52
56
;;
53
- * )
54
- addResidual " $1 "
55
- shift
56
- ;;
57
57
-d)
58
58
DEBUG=" $DEBUG_STR "
59
59
shift
60
60
;;
61
+ * )
62
+ addResidual " $1 "
63
+ shift
64
+ ;;
65
+
61
66
esac
62
67
done
63
68
64
- if [ -z $residual_args ]; then
69
+ CLASS_PATH=" ${classpath_args[@]} $CLASS_PATH "
70
+
71
+ if [ $run_repl == true ]; then
72
+ echo " Starting dotty REPL"
73
+ echo " $PROG_HOME /bin/dotc -classpath $CLASS_PATH -repl ${residual_args[@]} "
74
+ elif [ -z $residual_args ]; then
65
75
echo " Starting dotty REPL..."
66
76
eval " $PROG_HOME /bin/dotc -repl"
67
77
else
You can’t perform that action at this time.
0 commit comments