Skip to content

Commit e9b5a97

Browse files
committed
use File.pathSeparator for classpath in genDocs
- uses File.pathSeparator instead of hard-coded path separator `:` in genDocs => this way Windows user can run the command as well
1 parent 771d4c4 commit e9b5a97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

project/Build.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,10 @@ object Build {
364364
val majorVersion = baseVersion.take(baseVersion.lastIndexOf('.'))
365365
IO.write(file("./docs/_site/versions/latest-nightly-base"), majorVersion)
366366

367+
val separator = File.pathSeparator
367368
val dottyLib = (packageAll in `dotty-compiler`).value("dotty-library")
368369
val dottyInterfaces = (packageAll in `dotty-compiler`).value("dotty-interfaces")
369-
val otherDeps = (dependencyClasspath in Compile).value.map(_.data).mkString(":")
370+
val otherDeps = (dependencyClasspath in Compile).value.map(_.data).mkString(separator)
370371
val sources =
371372
(unmanagedSources in (Compile, compile)).value ++
372373
(unmanagedSources in (`dotty-compiler`, Compile)).value
@@ -375,7 +376,7 @@ object Build {
375376
"-project", "Dotty",
376377
"-project-version", dottyVersion,
377378
"-project-url", dottyGithubUrl,
378-
"-classpath", s"$dottyLib:$dottyInterfaces:$otherDeps"
379+
"-classpath", dottyLib + separator + dottyInterfaces + separator + otherDeps
379380
)
380381
(runMain in Compile).toTask(
381382
s""" dotty.tools.dottydoc.Main ${args.mkString(" ")} ${sources.mkString(" ")}"""

0 commit comments

Comments
 (0)