aboutsummaryrefslogtreecommitdiff
path: root/stage2/BuildDependency.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/BuildDependency.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/BuildDependency.scala')
-rw-r--r--stage2/BuildDependency.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/stage2/BuildDependency.scala b/stage2/BuildDependency.scala
index 197a7a1..4b4fdc1 100644
--- a/stage2/BuildDependency.scala
+++ b/stage2/BuildDependency.scala
@@ -16,9 +16,12 @@ trait TriggerLoop extends DependencyImplementation{
}
/** You likely want to use the factory method in the BasicBuild class instead of this. */
final case class DirectoryDependency(context: Context) extends TriggerLoop{
+ override def toString = show
override def show = this.getClass.getSimpleName ++ "(" ++ context.projectDirectory.string ++ ")"
+ def moduleKey = this.getClass.getName ++ "("+context.projectDirectory.string+")"
lazy val logger = context.logger
override lazy val lib: Lib = new Lib(logger)
+ def transientCache = context.transientCache
private lazy val root = lib.loadRoot( context.copy(args=Seq()) )
lazy val build = root.finalBuild
def exportedClasspath = ClassPath()