aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2016-11-10 00:13:56 -0500
committerGitHub <noreply@github.com>2016-11-10 00:13:56 -0500
commit11d01cbd4900ebdddff585f0f6bbae24eb3ed012 (patch)
treee24cac47045421a29293c18c31cfecd0b515e1ac /stage2/Lib.scala
parent9f17b211154bdd9f0a0fe1ca0125287641ad602c (diff)
parentba189b841194f1eb5f755b7af4efe550d8abf9e5 (diff)
downloadcbt-11d01cbd4900ebdddff585f0f6bbae24eb3ed012.tar.gz
cbt-11d01cbd4900ebdddff585f0f6bbae24eb3ed012.tar.bz2
cbt-11d01cbd4900ebdddff585f0f6bbae24eb3ed012.zip
Merge pull request #300 from cvogt/dynamic-overrides
Dynamic overrides
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala14
1 files changed, 13 insertions, 1 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index 25183a3..3f6242f 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -48,7 +48,19 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
val rootBuildClassName = if( useBasicBuildBuild ) buildBuildClassName else buildClassName
try{
- if(useBasicBuildBuild) default( context ) else new cbt.BasicBuild( context.copy( projectDirectory = start ) ) with BuildBuild
+ if(useBasicBuildBuild)
+ default( context )
+ else if(
+ // essentials depends on eval, which has a build that depends on scalatest
+ // this means in these we can't depend on essentials
+ // hopefully we find a better way that this pretty hacky exclusion rule
+ context.projectDirectory == (context.cbtHome ++ "/plugins/essentials")
+ || context.projectDirectory == (context.cbtHome ++ "/libraries/eval")
+ || context.projectDirectory == (context.cbtHome ++ "/plugins/scalatest")
+ )
+ new cbt.BasicBuild( context.copy( projectDirectory = start ) ) with BuildBuildWithoutEssentials
+ else
+ new cbt.BasicBuild( context.copy( projectDirectory = start ) ) with BuildBuild
} catch {
case e:ClassNotFoundException if e.getMessage == rootBuildClassName =>
throw new Exception(s"no class $rootBuildClassName found in " ++ start.string)