summaryrefslogtreecommitdiff
path: root/project/build/PathConfig.scala
diff options
context:
space:
mode:
authormoix <moix@epfl.ch>2010-08-19 15:06:34 +0000
committermoix <moix@epfl.ch>2010-08-19 15:06:34 +0000
commit8bef04a234b9c9005504a6fcd3f4f3dd10973ff8 (patch)
treea83201e33650bc57094d8f07f1cd861496bf65b4 /project/build/PathConfig.scala
parent11f2760b59da21f6f65d94a87430c56cbc5d1609 (diff)
downloadscala-8bef04a234b9c9005504a6fcd3f4f3dd10973ff8.tar.gz
scala-8bef04a234b9c9005504a6fcd3f4f3dd10973ff8.tar.bz2
scala-8bef04a234b9c9005504a6fcd3f4f3dd10973ff8.zip
Extending sbt capabilities :
- building continuation plugin - building and replacing fjgb, msil and forkjoin - building and replacing starr - layer cleaning tasks
Diffstat (limited to 'project/build/PathConfig.scala')
-rw-r--r--project/build/PathConfig.scala19
1 files changed, 12 insertions, 7 deletions
diff --git a/project/build/PathConfig.scala b/project/build/PathConfig.scala
index 4dc91772e1..b5cce66a2c 100644
--- a/project/build/PathConfig.scala
+++ b/project/build/PathConfig.scala
@@ -12,15 +12,20 @@ abstract class PathConfig {
def output:Path
}
-/**
- *
- */
+object PathConfig {
+ val classes = "classes"
+ val analysis = "analysis"
+}
-class PathLayout(val projectRoot:Path, val outputDir:Path) {
- lazy val srcDir = projectRoot / "src"
- lazy val classesOutput = outputDir / "classes"
- lazy val analysisOutput = outputDir / "analysis"
+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 {
+ lazy val srcDir = projectRoot / "src"
/**
* An utility method to easily create StandardPathConfig from a given path layout
*/