aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-15 02:17:08 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-15 03:38:42 -0500
commit2c8257b0c119b38102aa0c3efecffc7fefc9d766 (patch)
treeed3534a588f4e6203331ad55c86d4ef987b2e481 /stage2/BasicBuild.scala
parent2a1bf81eccf6b91e0dcdd2d7a05664da2049f3a1 (diff)
downloadcbt-2c8257b0c119b38102aa0c3efecffc7fefc9d766.tar.gz
cbt-2c8257b0c119b38102aa0c3efecffc7fefc9d766.tar.bz2
cbt-2c8257b0c119b38102aa0c3efecffc7fefc9d766.zip
add typed constants for build directory and file and use them everywhere
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r--stage2/BasicBuild.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala
index e5b3507..f32d4d9 100644
--- a/stage2/BasicBuild.scala
+++ b/stage2/BasicBuild.scala
@@ -24,12 +24,12 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge
def projectDirectory: File = lib.realpath(context.workingDirectory)
assert( projectDirectory.exists, "projectDirectory does not exist: " ++ projectDirectory.string )
assert(
- projectDirectory.getName =!= "build" ||
+ projectDirectory.getName =!= lib.buildDirectoryName ||
{
def transitiveInterfaces(cls: Class[_]): Vector[Class[_]] = cls.getInterfaces.toVector.flatMap(i => i +: transitiveInterfaces(i))
transitiveInterfaces(this.getClass).contains(classOf[BuildBuildWithoutEssentials])
},
- "You need to extend BuildBuild in: " + projectDirectory + "/build"
+ s"You need to extend ${lib.buildBuildClassName} in: " + projectDirectory + "/" ++ lib.buildDirectoryName
)
final def usage: String = lib.usage(this.getClass, show)