diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-13 15:34:42 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-13 15:34:42 -0500 |
commit | 094d172617394f337e6d3fe6ad338d43dcb46afb (patch) | |
tree | 36428812e958cdb191e072ca892e76eb22ec17d5 /stage2/BasicBuild.scala | |
parent | 46c1a8d989db3fd9903365158d2bc552d77bcc38 (diff) | |
download | cbt-094d172617394f337e6d3fe6ad338d43dcb46afb.tar.gz cbt-094d172617394f337e6d3fe6ad338d43dcb46afb.tar.bz2 cbt-094d172617394f337e6d3fe6ad338d43dcb46afb.zip |
minor cleanups regarding Context
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r-- | stage2/BasicBuild.scala | 7 |
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 |