Skip to content

Commit 921c06c

Browse files
committed
Fix dotr on Windows: use the right path separator.
`dotr` introduces a custom classpath, which was hard-coded to use `:` as path separator. This commit uses `File.pathSeparator` instead, so that it also works on Windows.
1 parent 18fa15e commit 921c06c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/Build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,8 @@ object Build {
590590
val dottyLib = jars("dotty-library")
591591

592592
def run(args: List[String]): Unit = {
593-
val fullArgs = insertClasspathInArgs(args, s".:$dottyLib:$scalaLib")
593+
val sep = File.pathSeparator
594+
val fullArgs = insertClasspathInArgs(args, s".$sep$dottyLib$sep$scalaLib")
594595
runProcess("java" :: fullArgs, wait = true)
595596
}
596597

0 commit comments

Comments
 (0)