aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/test
diff options
context:
space:
mode:
Diffstat (limited to 'doc-tool/test')
-rw-r--r--doc-tool/test/GenDocs.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc-tool/test/GenDocs.scala b/doc-tool/test/GenDocs.scala
index 770904016..358e52fdf 100644
--- a/doc-tool/test/GenDocs.scala
+++ b/doc-tool/test/GenDocs.scala
@@ -19,6 +19,11 @@ trait LocalResources extends api.scala.Dottydoc {
sys.env.get("DOC_RESOURCES").getOrElse("../../dottydoc-client/resources/")
).listFiles
+ def getFiles(file: JFile): Array[JFile] =
+ if (file.isDirectory) file.listFiles.flatMap(getFiles)
+ else if (file.getAbsolutePath.endsWith(".scala")) Array(file)
+ else Array()
+
assert(template.exists, "please specify a template.html file using DOC_TEMPLATE env var")
assert(resources.forall(_.exists), "please specify a resource dir using DOC_RESOURCES env var")
@@ -43,11 +48,6 @@ object GenCollections extends LocalResources {
object GenDottyDocs extends LocalResources {
import Files._
- def getFiles(file: JFile): Array[JFile] =
- if (file.isDirectory) file.listFiles.flatMap(getFiles)
- else if (file.getAbsolutePath.endsWith(".scala")) Array(file)
- else Array()
-
val dottyFiles = new JFile("../compiler/src/dotty").listFiles.flatMap(getFiles).map(_.getAbsolutePath)
override def main(args: Array[String]): Unit = buildDocs(