fix testListeners definition, which mixed old and new styles of definitions, resulting in runtime error

This is an example of the need for an annotation to indicate a method shouldn't survive type checking.
This commit is contained in:
Mark Harrah 2012-10-12 10:43:16 -04:00
parent 44e9c26162
commit 79aeb7b00e
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ object Defaults extends BuildCommon
lazy val TaskGlobal: Scope = ThisScope.copy(task = Global)
lazy val ConfigGlobal: Scope = ThisScope.copy(config = Global)
def testTaskOptions(key: Scoped): Seq[Setting[_]] = inTask(key)( Seq(
testListeners <<= (streams, resolvedScoped, streamsManager, logBuffered, cacheDirectory in test, testListeners in TaskGlobal) map { (s, sco, sm, buff, dir, ls) =>
testListeners := {
TestLogger(streams.value.log, testLogger(streamsManager.value, test in resolvedScoped.value.scope), logBuffered.value) +:
new TestStatusReporter(succeededFile( cacheDirectory.in(test).value )) +:
testListeners.in(TaskGlobal).value