aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-06-14 22:15:52 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-06-15 01:24:46 -0400
commitee439cdc67034d35762d54a6d87d51844fcf6dde (patch)
treec6aa1a4663c63f13638b16f263105a6e72f2cf6e /stage2/Lib.scala
parent8794d3ce0ca7f92df24c317c9a9b7025aa0e3dee (diff)
downloadcbt-ee439cdc67034d35762d54a6d87d51844fcf6dde.tar.gz
cbt-ee439cdc67034d35762d54a6d87d51844fcf6dde.tar.bz2
cbt-ee439cdc67034d35762d54a6d87d51844fcf6dde.zip
turn Build base classes into traits for less verbosity and uniform usage with any other plugin
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index 2a108ab..cec302a 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -49,7 +49,7 @@ 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.BuildBuild( context.copy( projectDirectory = start ) )
+ if(useBasicBuildBuild) default( context ) 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)
@@ -153,8 +153,8 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
def usage(buildClass: Class[_], show: String): String = {
val baseTasks = Seq(
classOf[BasicBuild],
- classOf[PackageBuild],
- classOf[PublishBuild],
+ classOf[PackageJars],
+ classOf[Publish],
classOf[Recommended]
).flatMap(lib.taskNames).distinct.sorted
val thisTasks = lib.taskNames(buildClass) diff baseTasks