aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 22:54:12 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 23:58:43 -0500
commitb8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc (patch)
tree859a6a25651a56ba92ec158fdb03f542d57202bd /examples
parente0fb6ec75286c695b7e4c5ed9189714d40f9b672 (diff)
downloadcbt-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 'examples')
-rw-r--r--examples/multi-combined-example/build/build.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/multi-combined-example/build/build.scala b/examples/multi-combined-example/build/build.scala
index 41c03d6..7d1ff9f 100644
--- a/examples/multi-combined-example/build/build.scala
+++ b/examples/multi-combined-example/build/build.scala
@@ -10,7 +10,7 @@ class Shared(val context: Context) extends SharedCbtBuild
class Sub(val context:Context) extends SharedCbtBuild{
override def dependencies = Seq(new Shared(
context.copy(
- projectDirectory = projectDirectory ++ "/../shared"
+ workingDirectory = projectDirectory ++ "/../shared"
)
))
}
@@ -24,19 +24,19 @@ class Build(val context: Context) extends BaseBuild{
*/
def sub1 = new Sub(
context.copy(
- projectDirectory = projectDirectory ++ "/sub1"
+ workingDirectory = projectDirectory ++ "/sub1"
)
)
def sub2 = new Sub(
context.copy(
- projectDirectory = projectDirectory ++ "/sub2"
+ workingDirectory = projectDirectory ++ "/sub2"
)
)
def sub3 = // DON'T DO THIS, anonymous classes are currently not supported here.
new SharedCbtBuild{
def context = Build.this.context.copy(
- projectDirectory = Build.this.projectDirectory ++ "/sub3"
+ workingDirectory = Build.this.projectDirectory ++ "/sub3"
)
}