aboutsummaryrefslogtreecommitdiff
path: root/stage2/BuildBuild.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-09 02:29:44 +0000
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-09 21:44:23 -0500
commitbee13ba7a4458482ce00a5c6bae4cd64328c4e5e (patch)
tree3eac3a3dee9fe2645673a7df09915d2f77f0b781 /stage2/BuildBuild.scala
parent00157c927255a9c885287a7e16670561e8e6391e (diff)
downloadcbt-bee13ba7a4458482ce00a5c6bae4cd64328c4e5e.tar.gz
cbt-bee13ba7a4458482ce00a5c6bae4cd64328c4e5e.tar.bz2
cbt-bee13ba7a4458482ce00a5c6bae4cd64328c4e5e.zip
memoize task results across classes within a single run
Diffstat (limited to 'stage2/BuildBuild.scala')
-rw-r--r--stage2/BuildBuild.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala
index cf515bb..1b05214 100644
--- a/stage2/BuildBuild.scala
+++ b/stage2/BuildBuild.scala
@@ -32,8 +32,7 @@ trait BuildBuildWithoutEssentials extends BaseBuild{
override def dependencies =
super.dependencies :+ context.cbtDependency
def managedBuildDirectory: java.io.File = lib.realpath( projectDirectory.parent )
- private object managedBuildCache extends Cache[BuildInterface]
- def managedBuild = managedBuildCache{
+ def managedBuild = taskCache[BuildBuildWithoutEssentials]("managedBuild").memoize{
val managedBuildFile = projectDirectory++"/build.scala"
logger.composition("Loading build at " ++ managedBuildDirectory.toString)
val build = (