sbt

EvaluateConfigurations

object EvaluateConfigurations

This file is responsible for compiling the .sbt files used to configure sbt builds.

Compilation is done in three phases:

  1. Parsing high-level constructs (definitions, settings, imports) 2. Compiling scala code into local .class files 3. Evaluating the expressions and obtaining in-memory objects of the results (Setting[_] instances, or val references).
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EvaluateConfigurations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type LazyClassLoaded[T] = (ClassLoader) ⇒ T

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val SettingsDefinitionName: String

    The name of the class we cast DSL "setting" (vs.

    The name of the class we cast DSL "setting" (vs. definition) lines to.

  7. def addOffset(offset: Int, lines: Seq[(String, Int)]): Seq[(String, Int)]

  8. def addOffsetToRange(offset: Int, ranges: Seq[(String, LineRange)]): Seq[(String, LineRange)]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def evaluateConfiguration(eval: Eval, file: File, lines: Seq[String], imports: Seq[String], offset: Int): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    Evaluates a parsed sbt configuration file.

    Evaluates a parsed sbt configuration file.

    eval

    The evaluating scala compiler instance we use to handle evaluating scala configuration.

    file

    The file we've parsed

    lines

    The lines of the configurtion we'd like to evaluate.

    imports

    The default imports to use in this .sbt configuration

    returns

    Just the Setting[_] instances defined in the .sbt file.

  14. def evaluateConfiguration(eval: Eval, src: File, imports: Seq[String]): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    Reads a given .

    Reads a given .sbt file and evaluates it into a sequence of setting values.

    Note: This ignores any non-Setting[_] values in the file.

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def apply(eval: Eval, srcs: Seq[File], imports: Seq[String]): (ClassLoader) ⇒ LoadedSbtFile

    Using an evaluating instance of the scala compiler, a sequence of files and the default imports to use, this method will take a ClassLoader of sbt-classes and return a parsed, compiled + evaluated LoadedSbtFile.

    Using an evaluating instance of the scala compiler, a sequence of files and the default imports to use, this method will take a ClassLoader of sbt-classes and return a parsed, compiled + evaluated LoadedSbtFile. The result has raw sbt-types that can be accessed and used.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.6) We no longer merge build.sbt files together unless they are in the same directory.

  2. def evaluateSetting(eval: Eval, name: String, imports: Seq[(String, Int)], expression: String, range: LineRange): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    This actually compiles a scala expression which represents a Seq[Setting[_]], although the expression may be just a single setting.

    This actually compiles a scala expression which represents a Seq[Setting[_]], although the expression may be just a single setting.

    eval

    The mechanism to compile and evaluate Scala expressions.

    name

    The name for the thing we're compiling

    imports

    The scala imports to have in place when we compile the expression

    expression

    The scala expression we're compiling

    range

    The original position in source of the expression, for error messages.

    returns

    A method that given an sbt classloader, can return the actual Seq[Setting[_]] defined by the expression.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.6) Build DSL now includes non-Setting[_] type settings.

  3. def flatten(mksettings: Seq[(ClassLoader) ⇒ Seq[Def.Setting[_]]]): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.6) Will no longer be public.

  4. def groupedLines(lines: Seq[(String, Int)], delimiter: (String) ⇒ Boolean, skipInitial: (String) ⇒ Boolean): Seq[(String, LineRange)]

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.7) This method is deprecated and no longer used.

  5. def splitExpressions(lines: Seq[String]): (Seq[(String, Int)], Seq[(String, LineRange)])

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.7) This method is no longer part of the public API.

Inherited from AnyRef

Inherited from Any

Ungrouped