Env

mill.define.TaskCtx.Env
@Scaladoc(value = "/** Access to the current system environment settings. */")
trait Env

Access to the current system environment settings.

Attributes

Source
TaskCtx.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait TaskCtx

Members list

Value members

Abstract methods

@Scaladoc(value = "/**\n * `Task.env` is the environment variable map passed to the Mill command when\n * it is run; typically used inside a `Task.Input` to ensure any changes in\n * the env vars are properly detected.\n *\n * Note that you should not use `sys.env`, as Mill\'s long-lived server\n * process means that `sys.env` variables may not be up to date.\n */")
def env: Map[String, String]

Task.env is the environment variable map passed to the Mill command when it is run; typically used inside a Task.Input to ensure any changes in the env vars are properly detected.

Task.env is the environment variable map passed to the Mill command when it is run; typically used inside a Task.Input to ensure any changes in the env vars are properly detected.

Note that you should not use sys.env, as Mill's long-lived server process means that sys.env variables may not be up to date.

Attributes

Source
TaskCtx.scala