diff options
author | Josh Suereth <joshua.suereth@gmail.com> | 2011-12-01 10:18:08 -0500 |
---|---|---|
committer | Josh Suereth <joshua.suereth@gmail.com> | 2011-12-01 10:18:08 -0500 |
commit | d4e16acd28f1dec82c213403f78d0e33cca4a791 (patch) | |
tree | a9726339fa9b07936e827ef146218bc813c7f057 /project/build/CompilationStep.scala | |
parent | 51f5831b0c0d14c28938a6f537b93f183217d942 (diff) | |
download | scala-d4e16acd28f1dec82c213403f78d0e33cca4a791.tar.gz scala-d4e16acd28f1dec82c213403f78d0e33cca4a791.tar.bz2 scala-d4e16acd28f1dec82c213403f78d0e33cca4a791.zip |
Port of SBT 0.11.x build. Things appear to be working well.
Diffstat (limited to 'project/build/CompilationStep.scala')
-rw-r--r-- | project/build/CompilationStep.scala | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/project/build/CompilationStep.scala b/project/build/CompilationStep.scala deleted file mode 100644 index 000dca0234..0000000000 --- a/project/build/CompilationStep.scala +++ /dev/null @@ -1,39 +0,0 @@ -import sbt._ -import AdditionalResources._ - -trait Step extends Dag[Step] { - def dependencies: Iterable[Step] -} - -class WrapperStep(contents: List[Step]) extends Step { - def dependencies = contents -} - -abstract class CompilationStep(val name: String, val pathConfig: PathConfig, logger: Logger) extends CompileConfiguration with Step { - def this(name: String, layout: PathLayout, logger: Logger) = this(name, layout / name, logger) - - // Utility methods (for quick access, ...) - final def srcDir = pathConfig.sources - - // Methods required for the compilation - def log: Logger = logger - final def sourceRoots : PathFinder = pathConfig.sources - def sources: PathFinder = sourceRoots.descendentsExcept("*.java" | "*.scala", ".svn") - 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 - case x :: xs => x match { - case c: CompilationStep => addDependenciesOutputTo(xs, acc +++ c.outputDirectory) - case w: WrapperStep => addDependenciesOutputTo(xs, addDependenciesOutputTo(dependencies.toList, acc)) - } - } - addDependenciesOutputTo(dependencies.toList, outputDirectory) - } - def javaOptions: Seq[String] = "-target 1.5 -source 1.5 -g:none" split ' ' - def maxErrors: Int = 100 - def compileOrder = CompileOrder.JavaThenScala - def fingerprints = Fingerprints(Nil, Nil) -} |