diff options
author | moix <moix@epfl.ch> | 2010-08-19 15:06:34 +0000 |
---|---|---|
committer | moix <moix@epfl.ch> | 2010-08-19 15:06:34 +0000 |
commit | 8bef04a234b9c9005504a6fcd3f4f3dd10973ff8 (patch) | |
tree | a83201e33650bc57094d8f07f1cd861496bf65b4 /project/build/CompilationStep.scala | |
parent | 11f2760b59da21f6f65d94a87430c56cbc5d1609 (diff) | |
download | scala-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/CompilationStep.scala')
-rw-r--r-- | project/build/CompilationStep.scala | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/project/build/CompilationStep.scala b/project/build/CompilationStep.scala index 02d76b9a54..be587de564 100644 --- a/project/build/CompilationStep.scala +++ b/project/build/CompilationStep.scala @@ -1,5 +1,6 @@ import sbt._ import BasicLayer._ + trait Step extends Dag[Step] { def dependencies:Iterable[Step] } @@ -12,15 +13,15 @@ abstract class CompilationStep(val name:String, val pathConfig:PathConfig, logge def this(name:String, layout:PathLayout,logger:Logger) = this(name, layout / name, logger) // Utility methods (for quick access, ...) - def srcDir = pathConfig.sources + final def srcDir = pathConfig.sources // Methods required for the compilation def log: Logger = logger - def sourceRoots : PathFinder = pathConfig.sources + final def sourceRoots : PathFinder = pathConfig.sources def sources: PathFinder = sourceRoots.descendentsExcept("*.java" | "*.scala", ".svn") - def projectPath: Path = pathConfig.projectRoot - def analysisPath: Path = pathConfig.analysis - def outputDirectory: Path = pathConfig.output + final def projectPath: Path = pathConfig.projectRoot + final def analysisPath: Path = pathConfig.analysis + final def outputDirectory: Path = pathConfig.output def classpath = { def addDependenciesOutputTo(list:List[Step],acc:PathFinder):PathFinder = list match{ case Nil => acc |