class MainRunner extends ammonite.MainRunner
Customized version of ammonite.MainRunner, allowing us to run Mill
build.sc
scripts with mill-specific tweaks such as a custom
scriptCodeWrapper
or with a persistent evaluator between runs.
- Annotations
- @Scaladoc()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MainRunner
- MainRunner
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MainRunner(config: Config, mainInteractive: Boolean, disableTicker: Boolean, outprintStream: PrintStream, errPrintStream: PrintStream, stdIn: InputStream, stateCache0: Option[EvaluatorState] = None, env: Map[String, String], setIdle: (Boolean) => Unit, debugLog: Boolean, keepGoing: Boolean, systemProperties: Map[String, String], threadCount: Option[Int], ringBell: Boolean, wd: Path, initialSystemProperties: Map[String, String])
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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val colored: Boolean
- val colors: Colors
- Definition Classes
- MainRunner → MainRunner
- val config: Config
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 handleWatchRes[T](res: Res[T], printing: Boolean): Boolean
- Definition Classes
- MainRunner → MainRunner
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initMain(isRepl: Boolean): Main
- Definition Classes
- MainRunner → MainRunner
- 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 printError(s: String): Unit
- Definition Classes
- MainRunner
- def printInfo(s: String): Unit
- Definition Classes
- MainRunner
- def runCode(code: String): Boolean
- Definition Classes
- MainRunner
- def runRepl(): Unit
- Definition Classes
- MainRunner
- def runScript(scriptPath: Path, scriptArgs: List[String]): Boolean
- Definition Classes
- MainRunner → MainRunner
- var stateCache: Option[EvaluatorState]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- 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 watchAndWait(watched: Seq[(Watchable, Long)]): Unit
- Definition Classes
- MainRunner → MainRunner
- final def watchLoop[T](isRepl: Boolean, printing: Boolean, run: (Main) => (Res[T], Seq[(Watchable, Long)])): Boolean
- Definition Classes
- MainRunner
- Annotations
- @tailrec()
- final def watchLoop2[T](isRepl: Boolean, printing: Boolean, run: (Main) => (Res[T], () => Seq[(Watchable, Long)])): Boolean
Custom version of watchLoop that lets us generate the watched-file signature only on demand, so if we don't have config.watch enabled we do not pay the cost of generating it
Custom version of watchLoop that lets us generate the watched-file signature only on demand, so if we don't have config.watch enabled we do not pay the cost of generating it
- Annotations
- @Scaladoc() @tailrec()
- object CustomCodeWrapper extends CodeWrapper