diff options
Diffstat (limited to 'doc-tool/test/GenDocs.scala')
-rw-r--r-- | doc-tool/test/GenDocs.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc-tool/test/GenDocs.scala b/doc-tool/test/GenDocs.scala index c60e8f1e0..9a911d4eb 100644 --- a/doc-tool/test/GenDocs.scala +++ b/doc-tool/test/GenDocs.scala @@ -18,6 +18,8 @@ trait LocalResources extends api.scala.Dottydoc { else Array() def withClasspath(files: Array[String]) = + "-siteroot" +: "../docs" +: + "-project" +: "Dotty" +: "-language:Scala2" +: "-classpath" +: "../library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar:../interfaces/target/dotty-interfaces-0.1-SNAPSHOT.jar" +: files @@ -29,7 +31,7 @@ object GenCollections extends LocalResources { val collections = TestWhitelistedCollections.files override def main(args: Array[String]): Unit = - super.main(Array("-siteroot", "../docs") ++ withClasspath(collections.toArray)) + super.main(withClasspath(collections.toArray)) } object GenDottyDocs extends LocalResources { @@ -38,5 +40,5 @@ object GenDottyDocs extends LocalResources { val dottyFiles = new JFile("../compiler/src/dotty").listFiles.flatMap(getFiles).map(_.getAbsolutePath) override def main(args: Array[String]): Unit = - super.main(Array("-siteroot", "../docs") ++ withClasspath(dottyFiles)) + super.main(withClasspath(dottyFiles)) } |