EvaluatorImpl

mill.eval.EvaluatorImpl
@Scaladoc(value = "/**\n * [[EvaluatorImpl]] is the primary API through which a user interacts with the Mill\n * evaluation process. The various phases of evaluation as methods they can call:\n *\n * 1. [[resolveSegments]]/[[resolveTasks]]\n * 2. [[plan]]\n * 3. [[execute]]/[[execute]],\n *\n * As well as [[evaluate]] which does all of these phases one after another\n */")
final class EvaluatorImpl extends Evaluator

EvaluatorImpl is the primary API through which a user interacts with the Mill evaluation process. The various phases of evaluation as methods they can call:

  1. resolveSegments/resolveTasks
  2. plan
  3. execute/execute,

As well as evaluate which does all of these phases one after another

Attributes

Source
EvaluatorImpl.scala
Graph
Supertypes
trait Evaluator
trait EvaluatorApi
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def close(): Unit

Attributes

Source
EvaluatorImpl.scala
@Scaladoc(value = "/**\n * Evaluates the given query selector, performing [[resolveTasks]] and [[execute]]\n * internally, and returning the [[Evaluator.Result]] containing the output\n */")
def evaluate(scriptArgs: Seq[String], selectMode: SelectMode, selectiveExecution: Boolean): Result[Result[Any]]

Evaluates the given query selector, performing resolveTasks and execute internally, and returning the Evaluator.Result containing the output

Evaluates the given query selector, performing resolveTasks and execute internally, and returning the Evaluator.Result containing the output

Attributes

Source
EvaluatorImpl.scala
@Scaladoc(value = "/**\n * @param targets\n * @param selectiveExecution\n * @return\n */")
def execute[T](targets: Seq[Task[T]], reporter: Int => Option[CompileProblemReporter], testReporter: TestReporter, logger: Logger, serialCommandExec: Boolean, selectiveExecution: Boolean): Result[T]

Attributes

Source
EvaluatorImpl.scala
def groupAroundImportantTargets[T](topoSortedTargets: TopoSorted)(important: PartialFunction[Task[_], T]): MultiBiMap[T, Task[_]]

Attributes

Source
EvaluatorImpl.scala
@Scaladoc(value = "/**\n * Takes a sequence of [[Task]]s and returns a [[PlanImpl]] containing the\n * transitive upstream tasks necessary to evaluate those provided.\n */")
def plan(tasks: Seq[Task[_]]): Plan

Takes a sequence of Tasks and returns a PlanImpl containing the transitive upstream tasks necessary to evaluate those provided.

Takes a sequence of Tasks and returns a PlanImpl containing the transitive upstream tasks necessary to evaluate those provided.

Attributes

Source
EvaluatorImpl.scala
def resolveModulesOrTasks(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[Either[Module, NamedTask[_]]]]

Attributes

Source
EvaluatorImpl.scala
@Scaladoc(value = "/**\n * Takes query selector tokens and resolves them to a list of [[Segments]]\n * representing concrete tasks or modules that match that selector\n */")
def resolveSegments(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[Segments]]

Takes query selector tokens and resolves them to a list of Segments representing concrete tasks or modules that match that selector

Takes query selector tokens and resolves them to a list of Segments representing concrete tasks or modules that match that selector

Attributes

Source
EvaluatorImpl.scala
@Scaladoc(value = "/**\n * Takes query selector tokens and resolves them to a list of [[NamedTask]]s\n * representing concrete tasks or modules that match that selector\n */")
def resolveTasks(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[NamedTask[_]]]

Takes query selector tokens and resolves them to a list of NamedTasks representing concrete tasks or modules that match that selector

Takes query selector tokens and resolves them to a list of NamedTasks representing concrete tasks or modules that match that selector

Attributes

Source
EvaluatorImpl.scala
def topoSorted(transitive: IndexedSeq[Task[_]]): TopoSorted

Takes the given targets, finds all the targets they transitively depend on, and sort them topologically. Fails if there are dependency cycles

Takes the given targets, finds all the targets they transitively depend on, and sort them topologically. Fails if there are dependency cycles

Attributes

Source
EvaluatorImpl.scala
def transitiveTargets(tasks: Seq[Task[_]]): IndexedSeq[Task[_]]

Collects all transitive dependencies (targets) of the given targets, including the given targets.

Collects all transitive dependencies (targets) of the given targets, including the given targets.

Attributes

Source
EvaluatorImpl.scala
def withBaseLogger(newBaseLogger: Logger): Evaluator

Attributes

Source
EvaluatorImpl.scala

Concrete fields

val selective: SelectiveExecution

APIs related to selective execution

APIs related to selective execution

Attributes

Source
EvaluatorImpl.scala