EvaluatorImpl

mill.eval.EvaluatorImpl
See theEvaluatorImpl companion object
@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

Companion
object
Source
EvaluatorImpl.scala
Graph
Supertypes
trait Evaluator
trait AutoCloseable
class Object
trait Matchable
class Any

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
@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
@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 withBaseLogger(newBaseLogger: Logger): Evaluator

Attributes

Source
EvaluatorImpl.scala