Env

mill.api.TaskCtx.Env
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

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