class Evaluator extends Product with Serializable
Evaluate tasks.
- Annotations
- @Scaladoc()
- Alphabetic
- By Inheritance
- Evaluator
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Evaluator(_home: Path, _outPath: Path, _externalOutPath: Path, _rootModule: BaseModule, _baseLogger: ColorLogger, _classLoaderSig: Seq[(Either[String, URL], Long)] = Evaluator.classLoaderSig, _workerCache: Map[Segments, (Int, Any)] = mutable.Map.empty, _env: Map[String, String] = Evaluator.defaultEnv, _failFast: Boolean = true, _threadCount: Option[Int] = Some(1))
- Annotations
- @deprecated
- Deprecated
(Since version mill 0.10.1) Use apply instead
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseLogger: ColorLogger
- def classLoaderSig: Seq[(Either[String, URL], Long)]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def destSegments(labelledTask: Labelled[_]): Segments
- val effectiveThreadCount: Int
- def env: Map[String, String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evaluate(goals: api.Strict.Agg[Task[_]], reporter: (Int) => Option[CompileProblemReporter] = _ => Option.empty[CompileProblemReporter], testReporter: TestReporter = DummyTestReporter, logger: ColorLogger = baseLogger): Results
- goals
The tasks that need to be evaluated
- reporter
A function that will accept a module id and provide a listener for build problems in that module
- testReporter
Listener for test events like start, finish with success/error
- Annotations
- @Scaladoc()
- def evaluateGroup(group: api.Strict.Agg[Task[_]], results: Map[Task[_], api.Result[(Any, Int)]], inputsHash: Int, paths: Option[EvaluatorPaths], maybeTargetLabel: Option[String], counterMsg: String, reporter: (Int) => Option[CompileProblemReporter], testReporter: TestReporter, logger: api.Logger): (LinkedHashMap[Task[_], api.Result[(Any, Int)]], Buffer[Task[_]])
- Attributes
- protected
- def evaluateGroupCached(terminal: Terminal, group: api.Strict.Agg[Task[_]], results: Map[Task[_], api.Result[(Any, Int)]], counterMsg: String, zincProblemReporter: (Int) => Option[CompileProblemReporter], testReporter: TestReporter, logger: ColorLogger): Evaluated
- Attributes
- protected
- def externalOutPath: Path
The output base path to use for external modules.
The output base path to use for external modules.
- Annotations
- @Scaladoc()
- def failFast: Boolean
If
true
the first failing task will fail the evaluation.If
true
the first failing task will fail the evaluation. Iffalse
, it tries to evaluate all tasks, running longer and reporting possibly more than one failure.- Annotations
- @Scaladoc()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFailing(sortedGroups: MultiBiMap[Either[Task[_], Labelled[Any]], Task[_]], results: Map[Task[_], api.Result[(Any, Int)]]): Mutable[Either[Task[_], Labelled[_]], Failing[_]]
- def handleTaskResult(v: Any, hashCode: Int, metaPath: Path, inputsHash: Int, labelledNamedTask: Labelled[_]): Unit
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def home: Path
- def importTree: Seq[ScriptNode]
The tree of imports of the build ammonite scripts
The tree of imports of the build ammonite scripts
- Annotations
- @Scaladoc()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 outPath: Path
The output base path.
The output base path.
- Annotations
- @Scaladoc()
- def parallelEvaluate(goals: api.Strict.Agg[Task[_]], threadCount: Int, logger: ColorLogger, reporter: (Int) => Option[CompileProblemReporter] = _ => Option.empty[CompileProblemReporter], testReporter: TestReporter = DummyTestReporter): Results
- val pathsResolver: EvaluatorPathsResolver
- def printTerm(term: Terminal): String
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- def resolveLogger(logPath: Option[Path], logger: api.Logger): api.Logger
- def rootModule: BaseModule
The projects root module.
The projects root module.
- Annotations
- @Scaladoc()
- def sequentialEvaluate(goals: api.Strict.Agg[Task[_]], logger: ColorLogger, reporter: (Int) => Option[CompileProblemReporter] = _ => Option.empty[CompileProblemReporter], testReporter: TestReporter = DummyTestReporter): Results
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def threadCount: Option[Int]
If a Some the explicit number of threads to use for parallel task evaluation, or None to use n threads where n is the number of available logical processors.
If a Some the explicit number of threads to use for parallel task evaluation, or None to use n threads where n is the number of available logical processors.
- Annotations
- @Scaladoc()
- def toString(): String
- Definition Classes
- Evaluator → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withBaseLogger(baseLogger: ColorLogger): Evaluator
- def withClassLoaderSig(classLoaderSig: Seq[(Either[String, URL], Long)]): Evaluator
- def withEnv(env: Map[String, String]): Evaluator
- def withExternalOutPath(externalOutPath: Path): Evaluator
- def withFailFast(failFast: Boolean): Evaluator
- def withHome(home: Path): Evaluator
- def withImportTree(importTree: Seq[ScriptNode]): Evaluator
- def withOutPath(outPath: Path): Evaluator
- def withRootModule(rootModule: BaseModule): Evaluator
- def withThreadCount(threadCount: Option[Int]): Evaluator
- def withWorkerCache(workerCache: Map[Segments, (Int, Any)]): Evaluator
- def workerCache: Map[Segments, (Int, Any)]
Mutable worker cache.
Mutable worker cache.
- Annotations
- @Scaladoc()
Deprecated Value Members
- def canEqual(that: Any): Boolean
- Definition Classes
- Evaluator → Equals
- Annotations
- @deprecated
- Deprecated
(Since version mill 0.10.1) Binary compatibility shim. To be removed
- def classLoaderSignHash: Int
- Annotations
- @deprecated
- Deprecated
(Since version mill 0.10.1) To be removed
- def copy(home: Path = this.home, outPath: Path = this.outPath, externalOutPath: Path = this.externalOutPath, rootModule: BaseModule = this.rootModule, baseLogger: ColorLogger = this.baseLogger, classLoaderSig: Seq[(Either[String, URL], Long)] = this.classLoaderSig, workerCache: Map[Segments, (Int, Any)] = this.workerCache, env: Map[String, String] = this.env, failFast: Boolean = this.failFast, threadCount: Option[Int] = this.threadCount): Evaluator
- Annotations
- @deprecated
- Deprecated
(Since version mill 0.10.1) Use withX methods instead
- def productArity: Int
- Definition Classes
- Evaluator → Product
- Annotations
- @deprecated
- Deprecated
(Since version mill 0.10.1) Binary compatibility shim. To be removed
- def productElement(n: Int): Any
- Definition Classes
- Evaluator → Product
- Annotations
- @deprecated
- Deprecated
(Since version mill 0.10.1) Binary compatibility shim. To be removed