Class EnvironmentUtils
java.lang.Object
org.apache.maven.properties.internal.EnvironmentUtils
Assists 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
- Author:
- Benjamin Bentmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addEnvVars
(Properties props) Adds the environment variables in the form of properties whose keys are prefixed withenv.
, e.g.
-
Constructor Details
-
EnvironmentUtils
public EnvironmentUtils()
-
-
Method Details
-
addEnvVars
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
.
-