Class EnvironmentUtils


  • public class EnvironmentUtils
    extends Object
    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 Detail

      • EnvironmentUtils

        public EnvironmentUtils()
    • Method Detail

      • addEnvVars

        public static void addEnvVars​(Properties props)
        Adds the environment variables in the form of properties whose keys are prefixed with env., 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 be null.