mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
make scaladocTask a fileTask so it doesn't run unless necessary
This commit is contained in:
@@ -192,7 +192,7 @@ trait ScalaProject extends SimpleScalaProject with FileTasks with MultiTaskProje
|
||||
def scaladocTask(label: String, sources: PathFinder, outputDirectory: Path, classpath: PathFinder, options: ScaladocOption*): Task =
|
||||
scaladocTask(label, sources, outputDirectory, classpath, options)
|
||||
def scaladocTask(label: String, sources: PathFinder, outputDirectory: Path, classpath: PathFinder, options: => Seq[ScaladocOption]): Task =
|
||||
task
|
||||
fileTask(outputDirectory / "index.html" from sources)
|
||||
{
|
||||
val optionsLocal = options
|
||||
val maxErrors = maximumErrors(optionsLocal)
|
||||
|
||||
Reference in New Issue
Block a user