@@ -1463,6 +1463,9 @@ object Build {
1463
1463
run.in(Compile ).toTask(s """ -d output/ $outDir -t $targets -n " $name" -s $sourceMapping $params""" )
1464
1464
}
1465
1465
1466
+ def joinProducts (products : Seq [java.io.File ]): String =
1467
+ products.iterator.map(_.getAbsolutePath.toString).mkString(java.io.File .pathSeparator)
1468
+
1466
1469
project.settings(commonBootstrappedSettings).
1467
1470
dependsOn(`scala3-compiler-bootstrapped`).
1468
1471
dependsOn(`scala3-tasty-inspector`).
@@ -1481,7 +1484,7 @@ object Build {
1481
1484
" com.novocode" % " junit-interface" % " 0.11" % " test" ,
1482
1485
),
1483
1486
Test / test := (Test / test).dependsOn(compile.in(Compile ).in(`scala3doc-testcases`)).value,
1484
- testcasesOutputDir.in(Test ) := classDirectory.in( Compile ).in (`scala3doc-testcases`).value.getAbsolutePath.toString ,
1487
+ testcasesOutputDir.in(Test ) := joinProducts( (`scala3doc-testcases`/ Compile / products ).value) ,
1485
1488
testcasesSourceRoot.in(Test ) := (baseDirectory.in(`scala3doc-testcases`).value / " src" ).getAbsolutePath.toString,
1486
1489
Compile / mainClass := Some (" dotty.dokka.Main" ),
1487
1490
// There is a bug in dokka that prevents parallel tests withing the same jvm
@@ -1498,7 +1501,7 @@ object Build {
1498
1501
// (`stdlib-bootstrapped`/Compile/products).value,
1499
1502
).flatten
1500
1503
1501
- val roots = dottyJars.map(_.toString).mkString(java.io. File .pathSeparator )
1504
+ val roots = joinProducts(dottyJars )
1502
1505
1503
1506
if (dottyJars.isEmpty) Def .task { streams.value.log.error(" Dotty lib wasn't found" ) }
1504
1507
else generateDocumentation(roots, " Scala 3" , " stdLib" , " -p dotty-docs/docs" )
0 commit comments