diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-13 22:54:12 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-13 23:58:43 -0500 |
commit | b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc (patch) | |
tree | 859a6a25651a56ba92ec158fdb03f542d57202bd /stage2/BuildDependency.scala | |
parent | e0fb6ec75286c695b7e4c5ed9189714d40f9b672 (diff) | |
download | cbt-b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc.tar.gz cbt-b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc.tar.bz2 cbt-b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc.zip |
easier setting of projectDirectory in sub-builds
by replacing context.projectDirectory by workingDirectory and using
it as the default but allowing it to being overridden
Diffstat (limited to 'stage2/BuildDependency.scala')
-rw-r--r-- | stage2/BuildDependency.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stage2/BuildDependency.scala b/stage2/BuildDependency.scala index 236f958..ed6c2bd 100644 --- a/stage2/BuildDependency.scala +++ b/stage2/BuildDependency.scala @@ -17,8 +17,8 @@ trait TriggerLoop extends DependencyImplementation{ /** You likely want to use the factory method in the BasicBuild class instead of this. */ final case class DirectoryDependency(context: Context) extends TriggerLoop{ override def toString = show - override def show = this.getClass.getSimpleName ++ "(" ++ context.projectDirectory.string ++ ")" - def moduleKey = this.getClass.getName ++ "("+context.projectDirectory.string+")" + override def show = this.getClass.getSimpleName ++ "(" ++ context.workingDirectory.string ++ ")" + def moduleKey = this.getClass.getName ++ "("+context.workingDirectory.string+")" lazy val logger = context.logger override lazy val lib: Lib = new Lib(logger) def transientCache = context.transientCache |