File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed
test/dotty/tools/scripting Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ jobs:
181181 uses : actions/checkout@v2
182182
183183 - name : Test
184- run : sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test"
184+ run : sbt ";dist/pack ; scala3-bootstrapped/compile ;scala3-bootstrapped/test"
185185 shell : cmd
186186
187187 - name : Scala.js Test
Original file line number Diff line number Diff line change 1- #!/usr/bin/env -S bin/scala -classpath 'dist/target/pack/lib/*'
1+ #!bin/scala -classpath 'dist/target/pack/lib/*'
22
33import java .nio .file .Paths
44
Original file line number Diff line number Diff line change 1- #!/usr/bin/env -S bin/scala -classpath 'dist/target/pack/lib/*'
1+ #!bin/scala -classpath 'dist/target/pack/lib/*'
22
33// won't compile unless the hashbang line sets classpath
44import org .jline .terminal .Terminal
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class ClasspathTests:
8888
8989
9090// ////////////// end of tests ////////////////
91- lazy val cwd = Paths .get(" ." ).toAbsolutePath
91+ lazy val cwd = Paths .get(" ." ).toAbsolutePath.normalize
9292lazy val wildcardEntry = " dist/target/pack/lib/*"
9393
9494def listJars (dir : String ) =
Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ while [[ $# -gt 0 ]]; do
4545 addScala " $1 "
4646 shift
4747 ;;
48+ -classpath* )
49+ if [ " $1 " != " ${1##* } " ]; then
50+ # hashbang-combined args "-classpath 'lib/*'"
51+ A=$1 ; shift # consume $1 before adding its substrings back
52+ set -- $A " $@ " # split $1 on whitespace and put it back
53+ else
54+ addScala " $1 "
55+ shift
56+ fi
57+ ;;
4858 * )
4959 addScala " $1 "
5060 shift
You can’t perform that action at this time.
0 commit comments