Package com.diffplug.gradle
Class EnvMisc
- java.lang.Object
-
- com.diffplug.gradle.EnvMisc
-
public class EnvMisc extends Object
Utilities for getting environment variables in buildscripts.
-
-
Constructor Summary
Constructors Constructor Description EnvMisc()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-