aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 19:16:47 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-04-02 03:32:20 -0400
commit06d69b3027cef5d800bcaff8374c5c215f98cd10 (patch)
tree7bf293457439c91c043d749f1b79c97420cec74d
parent52b30bcd4c1bb46879075f3a77d6eb3df3688c3a (diff)
downloadcbt-06d69b3027cef5d800bcaff8374c5c215f98cd10.tar.gz
cbt-06d69b3027cef5d800bcaff8374c5c215f98cd10.tar.bz2
cbt-06d69b3027cef5d800bcaff8374c5c215f98cd10.zip
prevent classClassLoaders for builds, currently not supported
currently leads to "you need to extend an appropriate Build class" exception, because BuildBuild has a different BaseBuild class than builds with a flat classloader
-rw-r--r--stage2/BuildBuild.scala3
-rw-r--r--stage2/Plugin.scala3
2 files changed, 6 insertions, 0 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala
index 8430f49..299ec21 100644
--- a/stage2/BuildBuild.scala
+++ b/stage2/BuildBuild.scala
@@ -9,6 +9,9 @@ trait BuildBuild extends BaseBuild{
object plugins extends plugins( context, scalaVersion )
+ /** CBT relies on hierarchical classloaders */
+ final override def flatClassLoader = false
+
assert(
projectDirectory.getName === lib.buildDirectoryName,
s"You can't extend ${lib.buildBuildClassName} in: " + projectDirectory + "/" + lib.buildDirectoryName
diff --git a/stage2/Plugin.scala b/stage2/Plugin.scala
index 2cc242d..5faf80c 100644
--- a/stage2/Plugin.scala
+++ b/stage2/Plugin.scala
@@ -2,4 +2,7 @@ package cbt
trait Plugin extends BaseBuild{
override def dependencies = super.dependencies :+ context.cbtDependency
object plugins extends plugins( context, scalaVersion )
+
+ /** CBT relies on hierarchical classloaders */
+ final override def flatClassLoader = false
}