diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 13:11:01 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 13:41:02 -0400 |
commit | cf2c37852a925eb3a31d237bfe00730d8e687686 (patch) | |
tree | 92807a01d9dd62fccd9903e18ce8765960c91603 | |
parent | 435267714fd9be710945d5d6c2d0ee1f18294e12 (diff) | |
download | cbt-cf2c37852a925eb3a31d237bfe00730d8e687686.tar.gz cbt-cf2c37852a925eb3a31d237bfe00730d8e687686.tar.bz2 cbt-cf2c37852a925eb3a31d237bfe00730d8e687686.zip |
fix wrong workingDir when referencing builds by directory
-rw-r--r-- | stage2/Lib.scala | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala index 52973f1..56f24c6 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -160,13 +160,8 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger){ }.getOrElse{ if( context =!= null && (context.workingDirectory / name).exists ){ val newContext = context.copy( workingDirectory = context.workingDirectory / name ) - callInternal( - DirectoryDependency( newContext.cwd )( newContext ).dependency, - members.tail, - previous :+ taskName, - newContext, - callback - ) + val build = DirectoryDependency( newContext, None ).dependency + callInternal( build, members.tail, previous :+ taskName, newContext, callback ) } else { val p = previous.mkString(".") val msg = (if(p.nonEmpty) p ++ s" has " else " ") |