saker.standard Documentation TaskDoc JavaDoc Packages

Get environment parameter

See also: Retrieve parameter values

You can use the std.param.env() task to retrieve the value of an environment user parameter during build execution.

If you use the following command line to build your project:

-EUexample.env.parameter=123

Then for the following build script:

$envparam = std.param.env(example.env.parameter)

The variable $envparam will have the value "123".