我研究并尝试了很多东西,我无法让它生成scaladoc。我运行sbt clean doc并播放干净的doc并且没有发生任何事情,我在构建中添加了一些代码。斯卡拉没有任何事情发生。有人可以帮忙看看我错过了什么。
以下是从build.scala
生成scaladoc的代码片段object Tasks {
val generateAPIDocsTask = TaskKey[Unit]("app-doc") <<= (fullClasspath in Test, compilers, streams) map {
(classpath, cs, s) =>
//IO.delete(file("documentation/api"))
// Scaladoc
println(" class path : " + classpath)
val sourceFiles =
(file("app/*") ** "*.scala").get ++
(file("test") ** "*.scala").get ++
(file("target/scala-2.10/src_managed/main/views/html") ** "*.scala").get
new Scaladoc(10, cs.scalac)(appName + " " + appVersion + " Scala API", sourceFiles, classpath.map(_.data), file("documentation/api/scala"), Nil, s.log)
println(" class path : " + classpath)
}
}
感谢