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/PathConfig.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/PathConfig.scala')
-rw-r--r-- | project/build/PathConfig.scala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/project/build/PathConfig.scala b/project/build/PathConfig.scala index b5cce66a2c..eccd0faf07 100644 --- a/project/build/PathConfig.scala +++ b/project/build/PathConfig.scala @@ -6,10 +6,10 @@ import sbt._ * @author Grégory Moix */ abstract class PathConfig { - def projectRoot:Path - def sources:Path - def analysis:Path - def output:Path + def projectRoot: Path + def sources: Path + def analysis: Path + def output: Path } object PathConfig { @@ -17,25 +17,25 @@ object PathConfig { val analysis = "analysis" } -trait SimpleOutputLayout{ - def outputDir:Path +trait SimpleOutputLayout { + def outputDir: Path lazy val classesOutput = outputDir / PathConfig.classes lazy val analysisOutput = outputDir / PathConfig.analysis } -class PathLayout(val projectRoot:Path, val outputDir:Path) extends SimpleOutputLayout { +class PathLayout(val projectRoot: Path, val outputDir: Path) extends SimpleOutputLayout { lazy val srcDir = projectRoot / "src" /** * An utility method to easily create StandardPathConfig from a given path layout */ - def /(name:String)= new StandardPathConfig(this, name) + def /(name: String)= new StandardPathConfig(this, name) } /** * */ -class StandardPathConfig(layout: PathLayout, name:String) extends PathConfig{ +class StandardPathConfig(layout: PathLayout, name: String) extends PathConfig { lazy val projectRoot = layout.projectRoot lazy val sources = layout.srcDir / name lazy val analysis = layout.analysisOutput / name |