Package com.diffplug.gradle
Class EnvMisc
java.lang.Object
com.diffplug.gradle.EnvMisc
Utilities for getting environment variables in buildscripts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the given environment variable, throwing a descriptive error if it doesn't exist.static StringgetOptional(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.
-
Constructor Details
-
EnvMisc
public EnvMisc()
-
-
Method Details
-
get
Returns the given environment variable, throwing a descriptive error if it doesn't exist. -
getOptional
Returns the given environment variable, printing a descriptive warning and using a default value if it doesn't exist.
-