diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-28 10:54:51 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-28 11:53:52 -0400 |
commit | bb7018817c0f41fb867cf9e81fe6f772c79bfafd (patch) | |
tree | a691b36a50b05e35f213cfce744853c2f042eb6e /stage2/Stage2.scala | |
parent | bd75b5af0161013b26e2feda9cfcc1e152926071 (diff) | |
download | cbt-bb7018817c0f41fb867cf9e81fe6f772c79bfafd.tar.gz cbt-bb7018817c0f41fb867cf9e81fe6f772c79bfafd.tar.bz2 cbt-bb7018817c0f41fb867cf9e81fe6f772c79bfafd.zip |
replace Scala reflection with Java reflection seems to fix the weird exceptions that happened in the previous commit. Also gets rid of scala.reflect dependency in stage2.
Diffstat (limited to 'stage2/Stage2.scala')
-rw-r--r-- | stage2/Stage2.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stage2/Stage2.scala b/stage2/Stage2.scala index a0a2b57..75be3c7 100644 --- a/stage2/Stage2.scala +++ b/stage2/Stage2.scala @@ -47,8 +47,9 @@ object Stage2{ scala.util.control.Breaks.break case file if triggerFiles.exists(file.toString startsWith _.toString) => - val reflectBuild = new lib.ReflectBuild( lib.loadDynamic(context) ) - logger.loop(s"Re-running $task for " ++ reflectBuild.build.projectDirectory.toString) + val build = lib.loadDynamic(context) + val reflectBuild = new lib.ReflectBuild( build ) + logger.loop(s"Re-running $task for " ++ build.projectDirectory.toString) reflectBuild.callNullary(task) } } else { |