diff options
author | Paul Phillips <paulp@improving.org> | 2011-01-27 20:24:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-01-27 20:24:50 +0000 |
commit | 330febc72b402aac2460be2cbc212d5860ed205c (patch) | |
tree | d43f7039557f0e6261f49f243e52c69f61eac9f6 /project/build/Scaladoc.scala | |
parent | 0d29472c7796ce6462e0893d7f401b56cbad1754 (diff) | |
download | scala-330febc72b402aac2460be2cbc212d5860ed205c.tar.gz scala-330febc72b402aac2460be2cbc212d5860ed205c.tar.bz2 scala-330febc72b402aac2460be2cbc212d5860ed205c.zip |
Securing some of the blessings of whitespace fo...
Securing some of the blessings of whitespace for the sbt build. No
review.
Diffstat (limited to 'project/build/Scaladoc.scala')
-rw-r--r-- | project/build/Scaladoc.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/project/build/Scaladoc.scala b/project/build/Scaladoc.scala index fc64e43c17..7f2580f5b2 100644 --- a/project/build/Scaladoc.scala +++ b/project/build/Scaladoc.scala @@ -1,13 +1,13 @@ import sbt._ import xsbt.AnalyzingCompiler -trait Scaladoc{ - self:BasicLayer with Packer => +trait Scaladoc { + self: BasicLayer with Packer => lazy val documentationDestination = outputRootPath / "scaladoc" lazy val libraryDocumentationDestination = documentationDestination / "library" lazy val compilerDocumentationDestination = documentationDestination / "compiler" - lazy val libraryDoc= { + lazy val libraryDoc = { val reflect = librarySrcDir / "scala" / "reflect" val runtime = librarySrcDir / "scala" / "runtime" @@ -34,15 +34,15 @@ trait Scaladoc{ (antJar +++ jlineJar +++ msilJar +++ fjbgJar +++ forkJoinJar +++ outputLibraryJar +++ outputCompilerJar +++ outputPartestJar +++ outputScalapJar ).get } - lazy val scaladoc = task{ - val externalSbt = new ExternalTaskRunner(projectRoot,this.name,generateScaladoc.name,"Error generating the scaladoc",log) + lazy val scaladoc = task { + val externalSbt = new ExternalTaskRunner(projectRoot, this.name, generateScaladoc.name, "Error generating the scaladoc", log) externalSbt.runTask }.dependsOn(pack) - lazy val generateScaladoc=task{ + lazy val generateScaladoc = task { instanceScope[Option[String]]{ scala => - lazy val compiler = new AnalyzingCompiler(scala,componentManager,xsbt.ClasspathOptions.manual,log) - val docGenerator = new sbt.Scaladoc(50,compiler) + lazy val compiler = new AnalyzingCompiler(scala, componentManager, xsbt.ClasspathOptions.manual, log) + val docGenerator = new sbt.Scaladoc(50, compiler) docGenerator("Scala "+ versionNumber+" API", libraryDoc.get, classpath, libraryDocumentationDestination, Seq(), log) orElse docGenerator("Scala Compiler"+ versionNumber+" API", compilerDoc.get, classpath, compilerDocumentationDestination, Seq(), log) } |