From 79aeb7b00ee968d858c95567585b44e5141b5c71 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Fri, 12 Oct 2012 10:43:16 -0400 Subject: [PATCH] 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. --- main/Defaults.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/Defaults.scala b/main/Defaults.scala index 5a6789713..9fe25dc9d 100755 --- a/main/Defaults.scala +++ b/main/Defaults.scala @@ -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