trait RunModule extends BaseClass with WithZincWorker
- Alphabetic
- By Inheritance
- RunModule
- WithZincWorker
- Module
- BaseClass
- Cacher
- Cacher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- object millInternal extends Internal
Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill
- 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
- def allLocalMainClasses: T[Seq[String]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cachedTarget[T](t: => T)(implicit c: Enclosing): T
- Attributes
- protected[this]
- Definition Classes
- Cacher → Cacher
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalMainClass: T[String]
- def finalMainClassOpt: T[Either[String, String]]
- def forkArgs: T[Seq[String]]
Any command-line parameters you want to pass to the forked JVM.
- def forkEnv: T[Map[String, String]]
Any environment variables you want to pass to the forked JVM.
- def forkWorkingDir: T[Path]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def localRunClasspath: T[Seq[api.PathRef]]
The elements of the run classpath which are local to this module.
The elements of the run classpath which are local to this module. This is typically the output of a compilation step and bundles runtime resources.
- def mainClass: T[Option[String]]
Allows you to specify an explicit main class to use for the
run
command.Allows you to specify an explicit main class to use for the
run
command. If none is specified, the classpath is searched for an appropriate main class to use if one exists. - implicit def millModuleBasePath: BasePath
- Definition Classes
- Module
- def millModuleDirectChildren: Seq[define.Module]
- Definition Classes
- Module
- implicit def millModuleExternal: External
- Definition Classes
- Module
- implicit def millModuleSegments: Segments
- Definition Classes
- Module
- implicit def millModuleShared: Foreign
- Definition Classes
- Module
- def millOuterCtx: Ctx
- Definition Classes
- BaseClass
- def millSourcePath: Path
- Definition Classes
- Module
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def run(args: define.Task[Args] = Task.Anon(Args())): define.Command[Unit]
Runs this module's code in a subprocess and waits for it to finish
- def runBackgroundLogToConsole: Boolean
If true, stdout and stderr of the process executed by
runBackground
orrunMainBackground
is sent to mill's stdout/stderr (which usually flow to the console).If true, stdout and stderr of the process executed by
runBackground
orrunMainBackground
is sent to mill's stdout/stderr (which usually flow to the console).If false, output will be directed to files
stdout.log
andstderr.log
inrunBackground.dest
(orrunMainBackground.dest
) - def runBackgroundRestartDelayMillis: T[Int]
- def runBackgroundTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
- def runClasspath: T[Seq[api.PathRef]]
All classfiles and resources including upstream modules and dependencies necessary to run this module's code.
- def runForkedTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
Runs this module's code in a subprocess and waits for it to finish
- def runLocal(args: define.Task[Args] = Task.Anon(Args())): define.Command[Unit]
Runs this module's code in-process within an isolated classloader.
Runs this module's code in-process within an isolated classloader. This is faster than
run
, but in exchange you have less isolation between runs since the code can dirty the parent Mill process and potentially leave it in a bad state. - def runLocalTask(mainClass: define.Task[String], args: define.Task[Args] = Task.Anon(Args())): define.Task[Unit]
- def runMain(mainClass: String, args: String*): define.Command[Unit]
Same as
run
, but lets you specify a main class to run - def runMainBackground(mainClass: String, args: String*): define.Command[Unit]
Same as
runBackground
, but lets you specify a main class to run - def runMainLocal(mainClass: String, args: String*): define.Command[Unit]
Same as
runLocal
, but lets you specify a main class to run - def runUseArgsFile: T[Boolean]
Control whether
run*
-targets should use an args file to pass command line args, if possible. - def runner: define.Task[Runner]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Module → AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def zincWorker: ModuleRef[ZincWorkerModule]
- Definition Classes
- WithZincWorker
Deprecated Value Members
- def doRunBackground(taskDest: Path, runClasspath: Seq[api.PathRef], zwBackgroundWrapperClasspath: Agg[api.PathRef], forkArgs: Seq[String], forkEnv: Map[String, String], finalMainClass: String, forkWorkingDir: Path, runUseArgsFile: Boolean, backgroundOutputs: Option[(ProcessOutput, ProcessOutput)])(args: String*): (Ctx) => Result[Unit]
- Attributes
- protected
- Annotations
- @deprecated
- Deprecated
(Since version Mill 0.12.0) Binary compat shim, use
.runner().run(..., background=true)
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)