Class EnvironmentUtils
- java.lang.Object
-
- org.apache.maven.properties.internal.EnvironmentUtils
-
public class EnvironmentUtils extends java.lang.ObjectAssists the project builder. Warning: This is an internal utility class that is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without prior notice.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.PropertiesenvVars
-
Constructor Summary
Constructors Constructor Description EnvironmentUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddEnvVars(java.util.Properties props)Adds the environment variables in the form of properties whose keys are prefixed withenv., e.g.
-
-
-
Method Detail
-
addEnvVars
public static void addEnvVars(java.util.Properties props)
Adds the environment variables in the form of properties whose keys are prefixed withenv., e.g.env.PATH. Unlike native environment variables, properties are always case-sensitive. For the sake of determinism, the environment variable names will be normalized to upper case on platforms with case-insensitive variable lookup.- Parameters:
props- The properties to add the environment variables to, may benull.
-
-