diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-13 15:34:34 +0100 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-13 15:34:34 +0100 |
commit | 6a770ac9cf0ed7c8157c7222e74ed1527d4c76c2 (patch) | |
tree | fc3ae9e9f62899e6748f764ccbd7b95ea59374b0 | |
parent | 1d6bd9e76b123d8b9f0a522634245512311417dc (diff) | |
download | cbt-6a770ac9cf0ed7c8157c7222e74ed1527d4c76c2.tar.gz cbt-6a770ac9cf0ed7c8157c7222e74ed1527d4c76c2.tar.bz2 cbt-6a770ac9cf0ed7c8157c7222e74ed1527d4c76c2.zip |
make case class DirectoryDependency final
-rw-r--r-- | stage2/BuildDependency.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stage2/BuildDependency.scala b/stage2/BuildDependency.scala index c0b53ad..a834435 100644 --- a/stage2/BuildDependency.scala +++ b/stage2/BuildDependency.scala @@ -15,16 +15,16 @@ trait TriggerLoop extends DependencyImplementation{ def triggerLoopFiles: Seq[File] } /** You likely want to use the factory method in the BasicBuild class instead of this. */ -case class DirectoryDependency(context: Context) extends TriggerLoop{ +final case class DirectoryDependency(context: Context) extends TriggerLoop{ override def show = this.getClass.getSimpleName ++ "(" ++ context.projectDirectory.string ++ ")" - final override lazy val logger = context.logger - final override lazy val lib: Lib = new Lib(logger) - private val root = lib.loadRoot( context.copy(args=Seq()) ) + lazy val logger = context.logger + override lazy val lib: Lib = new Lib(logger) + private lazy val root = lib.loadRoot( context.copy(args=Seq()) ) lazy val build = root.finalBuild def exportedClasspath = ClassPath() def dependencies = Seq(build) def triggerLoopFiles = root.triggerLoopFiles - override final val needsUpdate = build.needsUpdate + def needsUpdate = build.needsUpdate def targetClasspath = ClassPath() } /* |