make scaladocTask a fileTask so it doesn't run unless necessary

This commit is contained in:
Mark Harrah 2010-05-13 18:32:10 -04:00
parent 33e957a47c
commit 5826dbf2a0
1 changed files with 1 additions and 1 deletions

View File

@ -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)