object Scope extends Serializable
- Alphabetic
- By Inheritance
- Scope
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Global: Scope
- val GlobalScope: Scope
- val ThisScope: Scope
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def axisDelegates[T](direct: (ResolvedReference, T) ⇒ Seq[T], ref: ResolvedReference, init: T): (T, Seq[ScopeAxis[T]])
- def buildResolve(uri: URI): (Scope) ⇒ Scope
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
customShowString: AttributeKey[String]
Allows the user to override the result of
Scope.display
orScope.displayMasked
for a particular scope.Allows the user to override the result of
Scope.display
orScope.displayMasked
for a particular scope. This can be used to enhance super shell and/or error reporting for tasks that use mangled names. For example, one might have:val mangledKey = TaskKey[Unit]("foo_slash_bar") val attributeMap = AttributeMap.empty.put(Scope.customShowString("foo/bar")) val sanitizedKey = mangledKey.copy(scope = mangledKey.copy(extra = Select(attributeMap))) sanitizedKey := { ... }
Now whenever the
foo_slash_bar
task specified by sanitizedKey is evaluated, it will display "foo/bar" in super shell progress and in the error message if an error is thrown. - def delegates[Proj](refs: Seq[(ProjectRef, Proj)], configurations: (Proj) ⇒ Seq[ConfigKey], projectInherit: (ProjectRef) ⇒ Seq[ProjectRef], configInherit: (ResolvedReference, ConfigKey) ⇒ Seq[ConfigKey]): DelegateIndex
- def delegates[Proj](refs: Seq[(ProjectRef, Proj)], configurations: (Proj) ⇒ Seq[ConfigKey], resolve: (Reference) ⇒ ResolvedReference, rootProject: (URI) ⇒ String, projectInherit: (ProjectRef) ⇒ Seq[ProjectRef], configInherit: (ResolvedReference, ConfigKey) ⇒ Seq[ConfigKey], taskInherit: (AttributeKey[_]) ⇒ Seq[AttributeKey[_]]): (Scope) ⇒ Seq[Scope]
- def display(scope: Scope, sep: String, showProject: (Reference) ⇒ String): String
- def display(scope: Scope, sep: String): String
- def display(config: ConfigKey): String
- def displayConfigKey012Style(config: ConfigKey): String
-
def
displayMasked(scope: Scope, sep: String, showProject: (Reference) ⇒ String, mask: ScopeMask, showZeroConfig: Boolean): String
unified slash style introduced in sbt 1.1.0.
unified slash style introduced in sbt 1.1.0. By default, sbt will no longer display the Zero-config, so
name
will render asname
as opposed to{uri}proj/Zero/name
. Technically speaking an unspecified configuration axis defaults to the scope delegation (first configuration defining the key, then Zero). - def displayMasked(scope: Scope, sep: String, showProject: (Reference) ⇒ String, mask: ScopeMask): String
- def displayMasked(scope: Scope, sep: String, mask: ScopeMask, showZeroConfig: Boolean): String
- def displayMasked(scope: Scope, sep: String, mask: ScopeMask): String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equal(a: Scope, b: Scope, mask: ScopeMask): Boolean
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fillTaskAxis(scope: Scope, key: AttributeKey[_]): Scope
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def globalProjectDelegates(scope: Scope): Seq[Scope]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indexedDelegates(resolve: (Reference) ⇒ ResolvedReference, index: DelegateIndex, rootProject: (URI) ⇒ String, taskInherit: (AttributeKey[_]) ⇒ Seq[AttributeKey[_]])(rawScope: Scope): Seq[Scope]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def linearize[T](axis: ScopeAxis[T], appendZero: Boolean = true)(inherit: (T) ⇒ Seq[T]): Seq[ScopeAxis[T]]
- def mapReference(f: (Reference) ⇒ Reference): (Scope) ⇒ Scope
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def projectPrefix(project: ScopeAxis[Reference], show: (Reference) ⇒ String = showProject): String
- def projectPrefix012Style(project: ScopeAxis[Reference], show: (Reference) ⇒ String = showProject): String
- def rawBuild(ps: ScopeAxis[ProjectRef]): Seq[ScopeAxis[BuildRef]]
- def replaceThis(thisScope: Scope): (Scope) ⇒ Scope
- def resolveBuild(current: URI, uri: URI): URI
- def resolveBuild(current: URI, ref: BuildReference): BuildReference
- def resolveBuildOnly(current: URI, ref: Reference): Reference
- def resolveBuildRef(current: URI, ref: BuildReference): BuildRef
- def resolveBuildScope(thisScope: Scope, current: URI): (Scope) ⇒ Scope
- def resolveProject(uri: URI, rootProject: (URI) ⇒ String): (Scope) ⇒ Scope
- def resolveProjectBuild(current: URI, ref: ProjectReference): ProjectReference
- def resolveProjectRef(current: URI, rootProject: (URI) ⇒ String, ref: ProjectReference): ProjectRef
- def resolveReference(current: URI, rootProject: (URI) ⇒ String, ref: Reference): ResolvedReference
- def resolveScope(thisScope: Scope, current: URI, rootProject: (URI) ⇒ String): (Scope) ⇒ Scope
- def showProject: (Reference) ⇒ String
- def showProject012Style: (Reference) ⇒ String
- def subThis[T](sub: ScopeAxis[T], into: ScopeAxis[T]): ScopeAxis[T]
-
def
subThisProject: (Scope) ⇒ Scope
Select(ThisProject)
cannot be resolved by resolveProject (it doesn't know what to replace it with), so we perform this transformation so that replaceThis picks it up. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def topologicalSort[T](node: T, appendZero: Boolean)(dependencies: (T) ⇒ Seq[T]): Seq[ScopeAxis[T]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withGlobalScope(base: Scope): Seq[Scope]
- def withRawBuilds(ps: Seq[ScopeAxis[ProjectRef]]): Seq[ScopeAxis[ResolvedReference]]
- def withZeroAxis[T](base: ScopeAxis[T]): Seq[ScopeAxis[T]]
Deprecated Value Members
-
def
delegates[Proj](refs: Seq[(ProjectRef, Proj)], configurations: (Proj) ⇒ Seq[ConfigKey], resolve: (Reference) ⇒ ResolvedReference, rootProject: (URI) ⇒ String, projectInherit: (ProjectRef) ⇒ Seq[ProjectRef], configInherit: (ResolvedReference, ConfigKey) ⇒ Seq[ConfigKey], taskInherit: (AttributeKey[_]) ⇒ Seq[AttributeKey[_]], extraInherit: (ResolvedReference, AttributeMap) ⇒ Seq[AttributeMap]): (Scope) ⇒ Seq[Scope]
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.1) Use variant without extraInherit
-
def
indexedDelegates(resolve: (Reference) ⇒ ResolvedReference, index: DelegateIndex, rootProject: (URI) ⇒ String, taskInherit: (AttributeKey[_]) ⇒ Seq[AttributeKey[_]], extraInherit: (ResolvedReference, AttributeMap) ⇒ Seq[AttributeMap])(rawScope: Scope): Seq[Scope]
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.1) Use variant without extraInherit
-
def
transformTaskName(s: String): String
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.3) No longer used