aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-22 17:02:13 +0800
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-22 17:03:43 +0800
commit0972023722e8f6a59002d2d78defb7c5dec0240f (patch)
tree6afcb970230a9de6d07cfd6a424df555fbeee329 /stage2/BasicBuild.scala
parent420b0bc9fdb542d0af49da96e37733ab3a3363ee (diff)
downloadcbt-0972023722e8f6a59002d2d78defb7c5dec0240f.tar.gz
cbt-0972023722e8f6a59002d2d78defb7c5dec0240f.tar.bz2
cbt-0972023722e8f6a59002d2d78defb7c5dec0240f.zip
treat subdirectores as subbuilds via cmd line
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r--stage2/BasicBuild.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala
index 5c49395..e3b1c1b 100644
--- a/stage2/BasicBuild.scala
+++ b/stage2/BasicBuild.scala
@@ -189,7 +189,8 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge
def test: Any =
lib.callReflective(
DirectoryDependency(projectDirectory++"/test").dependency,
- Some("run")
+ Some("run"),
+ context
)
def t = test
@@ -229,7 +230,7 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge
System.err.println(b.show)
lib.trapExitCode{ // FIXME: trapExitCode does not seem to work here
try{
- lib.callReflective(b,code)
+ lib.callReflective(b,code,context)
ExitCode.Success
} catch {
case e: Throwable => println(e.getClass); throw e