public class EnvMisc extends Object
Utilities for getting environment variables in buildscripts.
Constructor and Description |
---|
EnvMisc() |
Modifier and Type | Method and Description |
---|---|
static String |
get(String key,
String whatItIs)
Returns the given environment variable, throwing a descriptive error if it doesn’t exist.
|
static String |
getOptional(String key,
String defaultValue,
String whatItIs)
Returns the given environment variable, printing a descriptive warning and using a default value if it doesn’t exist.
|