diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-07 11:07:09 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-15 01:24:46 -0400 |
commit | ad2094b06eb7e313b3655ae0cae98b50787177d3 (patch) | |
tree | 1ea8a3a23991554d248a67c2f89f352609580720 /stage2/BuildBuild.scala | |
parent | b37e339c41483c15bf14f84be60c8470fd429d77 (diff) | |
download | cbt-ad2094b06eb7e313b3655ae0cae98b50787177d3.tar.gz cbt-ad2094b06eb7e313b3655ae0cae98b50787177d3.tar.bz2 cbt-ad2094b06eb7e313b3655ae0cae98b50787177d3.zip |
separate sbt layout and scalatest plugins and create a more general plugin architecture
Diffstat (limited to 'stage2/BuildBuild.scala')
-rw-r--r-- | stage2/BuildBuild.scala | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala index 8ac619c..7eab5e6 100644 --- a/stage2/BuildBuild.scala +++ b/stage2/BuildBuild.scala @@ -1,18 +1,23 @@ package cbt -import java.io._ import java.nio.file._ trait BuildBuild extends BaseBuild{ + private final val managedContext = context.copy( + projectDirectory = managedBuildDirectory, + parentBuild=Some(this) + ) + + object plugins{ + final val scalaTest = BuildDependency( managedContext.cbtHome ++ "/plugins/scalatest" ) + final val sbtLayout = BuildDependency( managedContext.cbtHome ++ "/plugins/sbt_layout" ) + } + override def dependencies = super.dependencies :+ context.cbtDependency - def managedBuildDirectory: File = lib.realpath( projectDirectory.parent ) + def managedBuildDirectory: java.io.File = lib.realpath( projectDirectory.parent ) private object managedBuildCache extends Cache[BuildInterface] def managedBuild = managedBuildCache{ try{ - val managedContext = context.copy( - projectDirectory = managedBuildDirectory, - parentBuild=Some(this) - ) val managedBuildFile = projectDirectory++"/build.scala" logger.composition("Loading build at "++managedContext.projectDirectory.toString) ( |