aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
diff options
context:
space:
mode:
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r--stage2/BasicBuild.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala
index 3b1ea19..7ff1f4b 100644
--- a/stage2/BasicBuild.scala
+++ b/stage2/BasicBuild.scala
@@ -3,10 +3,13 @@ package cbt
import java.io._
import java.net._
-class BasicBuild(val context: Context) extends BaseBuild
+class BasicBuild(final val context: Context) extends BaseBuild
trait BaseBuild extends BuildInterface with DependencyImplementation with TriggerLoop with SbtDependencyDsl{
+ //* DO NOT OVERRIDE CONTEXT in non-idempotent ways, because .copy and new Build
+ // will create new instances given the context, which means operations in the
+ // overrides will happen multiple times and if they are not idempotent stuff likely breaks
def context: Context
-
+
// library available to builds
implicit protected final val logger: Logger = context.logger
implicit protected final val classLoaderCache: ClassLoaderCache = context.classLoaderCache