diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-09 02:29:44 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-09 21:44:23 -0500 |
commit | bee13ba7a4458482ce00a5c6bae4cd64328c4e5e (patch) | |
tree | 3eac3a3dee9fe2645673a7df09915d2f77f0b781 /stage2/plugins/Dotty.scala | |
parent | 00157c927255a9c885287a7e16670561e8e6391e (diff) | |
download | cbt-bee13ba7a4458482ce00a5c6bae4cd64328c4e5e.tar.gz cbt-bee13ba7a4458482ce00a5c6bae4cd64328c4e5e.tar.bz2 cbt-bee13ba7a4458482ce00a5c6bae4cd64328c4e5e.zip |
memoize task results across classes within a single run
Diffstat (limited to 'stage2/plugins/Dotty.scala')
-rw-r--r-- | stage2/plugins/Dotty.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stage2/plugins/Dotty.scala b/stage2/plugins/Dotty.scala index 8671fb6..fe949a3 100644 --- a/stage2/plugins/Dotty.scala +++ b/stage2/plugins/Dotty.scala @@ -14,8 +14,7 @@ trait Dotty extends BaseBuild{ context.classLoaderCache, dottyVersion = dottyVersion ) - private object compileCache extends Cache[Option[File]] - override def compile: Option[File] = compileCache{ + override def compile: Option[File] = taskCache[Dotty]("compile").memoize{ dottyLib.compile( needsUpdate || context.parentBuild.map(_.needsUpdate).getOrElse(false), sourceFiles, compileTarget, compileStatusFile, compileClasspath, @@ -41,7 +40,7 @@ class DottyLib( mavenCache: File, classLoaderCache: ClassLoaderCache, dottyVersion: String -){ +)(implicit transientCache: java.util.Map[AnyRef,AnyRef]){ val lib = new Lib(logger) import lib._ |