ScopedSources

scala.build.ScopedSources
final case class ScopedSources(paths: Seq[HasScope[(Path, RelPath)]], inMemory: Seq[HasScope[InMemory]], defaultMainElemPath: Option[Path], resourceDirs: Seq[HasScope[Path]], buildOptions: Seq[HasScope[BuildOptions]], unwrappedScripts: Seq[HasScope[UnwrappedScript]])

Information gathered from preprocessing command inputs - sources (including unwrapped scripts) and build options from using directives. Only scope requirements remain in this object after resolving them in CrossSources.scopedSources

Value parameters

buildOptions

build options sources with the scope they belong to

inMemory

in memory sources (e.g. snippets) with the scope they belong to

paths

paths and relative paths to sources on disk with the scope they belong to

unwrappedScripts

in memory script sources with the scope they belong to, their code must be wrapped before compiling

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def buildInfo(baseOptions: BuildOptions, workspace: Path): Either[BuildException, BuildInfo]
def buildOptionsFor(scope: Scope): Seq[BuildOptions]
def combinedBuildOptions(scope: Scope, baseOptions: BuildOptions): BuildOptions

Combine build options that had no requirements (console and using directives) or their requirements have been resolved (e.g. target using directives) with build options that require the specified scope

Combine build options that had no requirements (console and using directives) or their requirements have been resolved (e.g. target using directives) with build options that require the specified scope

Value parameters

baseOptions

options that have already been collected for this build (had no requirements or they have been resolved)

scope

scope to be resolved

Attributes

Returns

Combined BuildOptions, baseOptions' values take precedence

def sources(scope: Scope, baseOptions: BuildOptions, workspace: Path, logger: Logger): Either[BuildException, Sources]

Resolve scope requirements and create a Sources instance

Resolve scope requirements and create a Sources instance

Value parameters

baseOptions

options that have already been collected for this build, they should consist of:

  • options from the console
  • options from using directives from the sources
  • options from resolved using directives that had Scala version and platform requirements that fit the current build
scope

scope to be resolved

Attributes

Returns

Sources instance that belong to specified scope

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product