public final class EnvUtils extends Object
Constructor and Description |
---|
EnvUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isPropertyTrue(String propertyName)
Predicate that returns true if the given system property is set true.
|
static boolean |
showOutput()
Predicate that returns true if the "show.output" system property is set.
|
public static boolean isPropertyTrue(String propertyName)
if (EnvUtils.isPropertyTrue("foo.bar")) { ... }will be true if the option
-Dfoo.bar=true
was included in the VM parameters.propertyName
- the name of the system propertypublic static boolean showOutput()
-Dshow.output=true
Copyright © 2015. All Rights Reserved.