add method noTestCompletion() for disabling test name completion. ref #66

This commit is contained in:
Mark Harrah 2011-06-23 20:37:56 -04:00
parent 1dc3f0ed56
commit b867d2e398
1 changed files with 4 additions and 1 deletions

View File

@ -968,7 +968,10 @@ trait BuildExtra extends BuildCommon
}
private[this] def inScoped[T](sk: ScopedKey[_], i: Initialize[T]): Initialize[T] = inScope(fillTaskAxis(sk.scope, sk.key), i)
private[this] def inScope[T](s: Scope, i: Initialize[T]): Initialize[T] = i mapReferenced Project.mapScope(Scope.replaceThis(s))
/** Disables post-compilation hook for determining tests for tab-completion (such as for 'test-only').
* This is useful for reducing test:compile time when not running test. */
def noTestCompletion(config: Configuration = Test): Setting[_] = inConfig(config)( Seq(definedTests <<= Defaults.detectTests) ).head
}
trait BuildCommon
{