diff options
-rw-r--r-- | stage2/BuildBuild.scala | 2 | ||||
-rw-r--r-- | stage2/Lib.scala | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala index 9ac631f..d97e186 100644 --- a/stage2/BuildBuild.scala +++ b/stage2/BuildBuild.scala @@ -2,6 +2,8 @@ package cbt import java.nio.file._ import java.io.File +class ConcreteBuildBuild(val context: Context) extends BuildBuild +class ConcreteBuildBuildWithoutEssentials(val context: Context) extends BuildBuildWithoutEssentials trait BuildBuild extends BuildBuildWithoutEssentials{ override def dependencies = super.dependencies :+ plugins.essentials diff --git a/stage2/Lib.scala b/stage2/Lib.scala index 1ecc99e..7adb33e 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -47,9 +47,9 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger){ || directory == (context.cbtHome ++ "/libraries/eval") || directory == (context.cbtHome ++ "/plugins/scalatest") ) - new cbt.BasicBuild( context.copy( workingDirectory = start ) ) with BuildBuildWithoutEssentials + new cbt.ConcreteBuildBuildWithoutEssentials( context.copy( workingDirectory = start ) ) else - new cbt.BasicBuild( context.copy( workingDirectory = start ) ) with BuildBuild + new cbt.ConcreteBuildBuild( context.copy( workingDirectory = start ) ) } catch { case e:ClassNotFoundException if e.getMessage == buildClassName => throw new Exception(s"no class ${buildClassName} found in " ++ start.string) |