getConfigVariable

open override fun getConfigVariable(name: String): String?(source)

Retrieves the value of the specified environment variable or system property.

The method first attempts to retrieve the value from the environment variables. If it is not found, it then attempts to retrieve the value from the system properties. When checking system properties, the name is converted to lowercase and underscores are replaced with dots.

Return

the value of the environment variable or system property, or null if not found

Parameters

name

the name of the environment variable or system property to retrieve