aboutsummaryrefslogtreecommitdiff
path: root/stage1/ContextImplementation.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2017-02-10 01:11:22 -0500
committerGitHub <noreply@github.com>2017-02-10 01:11:22 -0500
commitd743136c6b98fa91f501cc15dc47530f8f93b8fe (patch)
treeaedb9af30e41f056aea148cc9e3b37d17327ca54 /stage1/ContextImplementation.scala
parente2cb8726735ba306ade3befefae3b87549b52c9f (diff)
parentf5e653e033e468c58e8a832e0dce3a7020a66ce4 (diff)
downloadcbt-d743136c6b98fa91f501cc15dc47530f8f93b8fe.tar.gz
cbt-d743136c6b98fa91f501cc15dc47530f8f93b8fe.tar.bz2
cbt-d743136c6b98fa91f501cc15dc47530f8f93b8fe.zip
Merge pull request #314 from cvogt/fix-update-bugs
better caching and change propagation fixing link-time errors
Diffstat (limited to 'stage1/ContextImplementation.scala')
-rw-r--r--stage1/ContextImplementation.scala44
1 files changed, 25 insertions, 19 deletions
diff --git a/stage1/ContextImplementation.scala b/stage1/ContextImplementation.scala
index 152e606..69094b0 100644
--- a/stage1/ContextImplementation.scala
+++ b/stage1/ContextImplementation.scala
@@ -1,22 +1,28 @@
package cbt
import java.io._
-import java.util.concurrent.ConcurrentHashMap
-import java.lang._
-case class ContextImplementation(
- projectDirectory: File,
- cwd: File,
- argsArray: Array[String],
- enabledLoggersArray: Array[String],
- startCompat: Long,
- cbtHasChangedCompat: Boolean,
- scalaVersionOrNull: String,
- permanentKeys: ConcurrentHashMap[String,AnyRef],
- permanentClassLoaders: ConcurrentHashMap[AnyRef,ClassLoader],
- taskCache: ConcurrentHashMap[AnyRef,AnyRef],
- cache: File,
- cbtHome: File,
- cbtRootHome: File,
- compatibilityTarget: File,
- parentBuildOrNull: BuildInterface
-) extends Context \ No newline at end of file
+class ContextImplementation(
+ override val projectDirectory: File,
+ override val cwd: File,
+ override val argsArray: Array[String],
+ override val enabledLoggersArray: Array[String],
+ override val start: Long,
+ override val cbtLastModified: Long,
+ override val scalaVersionOrNull: String,
+ override val persistentCache: java.util.Map[AnyRef,AnyRef],
+ override val transientCache: java.util.Map[AnyRef,AnyRef],
+ override val cache: File,
+ override val cbtHome: File,
+ override val cbtRootHome: File,
+ override val compatibilityTarget: File,
+ override val parentBuildOrNull: BuildInterface
+) extends Context{
+ @deprecated("this method is replaced by cbtLastModified","")
+ def cbtHasChangedCompat = true
+ @deprecated("this method is replaced by start","")
+ def startCompat = start
+ @deprecated("this methods is replaced by persistentCache","")
+ def permanentKeys = throw new IncompatibleCbtVersionException("You need to upgrade your CBT version in this module. The Context field permanentClassLoaders is no longer supported.");
+ @deprecated("this methods is replaced by persistentCache","")
+ def permanentClassLoaders = throw new IncompatibleCbtVersionException("You need to upgrade your CBT version in this module. The Context field permanentClassLoaders is no longer supported.");
+}