diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-19 16:12:56 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-19 16:12:56 -0400 |
commit | 1531ea1c1383368f8a8048a079397f08e25ecd11 (patch) | |
tree | f3953f6484de648401f25b953f99060af9b8068d /stage2/BasicBuild.scala | |
parent | cacf65000cb1a8aa49b29a7be3f11de60a9b7afe (diff) | |
download | cbt-1531ea1c1383368f8a8048a079397f08e25ecd11.tar.gz cbt-1531ea1c1383368f8a8048a079397f08e25ecd11.tar.bz2 cbt-1531ea1c1383368f8a8048a079397f08e25ecd11.zip |
simplify logic that delegates to test build and runs it
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r-- | stage2/BasicBuild.scala | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala index 4be0e58..2083acc 100644 --- a/stage2/BasicBuild.scala +++ b/stage2/BasicBuild.scala @@ -143,9 +143,12 @@ trait BaseBuild extends DependencyImplementation with BuildInterface with Trigge def runClass: String = "Main" def run: ExitCode = lib.runMainIfFound( runClass, context.args, classLoader(context.classLoaderCache) ) - def test: Option[ExitCode] = { - lib.test(context) - } + def test: Option[ExitCode] = + Some(new lib.ReflectBuild( + BuildDependency(projectDirectory++"/test").build + ).callNullary(Some("run"))) + def t = test + def rt = recursiveUnsafe(Some("test")) def recursiveSafe(_run: BuildInterface => Any): ExitCode = { val builds = (this +: transitiveDependencies).collect{ @@ -192,9 +195,7 @@ trait BaseBuild extends DependencyImplementation with BuildInterface with Trigge } def c = compile - def t = test def r = run - def rt = recursiveUnsafe(Some("test")) /* context.logger.composition(">"*80) |