mirror of https://github.com/sbt/sbt.git
make scaladocTask a fileTask so it doesn't run unless necessary
This commit is contained in:
parent
33e957a47c
commit
5826dbf2a0
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue