Class EnvironmentVariableAccessorImpl

    • Method Detail

      • joinEnvironmentVariables

        @NotNull
        public @NotNull String joinEnvironmentVariables​(@NotNull
                                                        @NotNull Map<String,​String> environmentVariables)
        Description copied from interface: EnvironmentVariableAccessor
        Concatenate environment variables into string.
        Specified by:
        joinEnvironmentVariables in interface EnvironmentVariableAccessor
        Parameters:
        environmentVariables - Map of key-value pairs to be concatenated
        Returns:
        concatenated environment variables in form "KEY1=VALUE1 KEY2=VALUE2 ..."
      • splitEnvironmentAssignments

        @NotNull
        public @NotNull Map<String,​String> splitEnvironmentAssignments​(@NotNull
                                                                             @NotNull String environmentAssignments,
                                                                             boolean processBackslashes)
        Description copied from interface: EnvironmentVariableAccessor
        Splits "Environment settings" string into array of separate strings. Quoting is taken into consideration. An environment setting is defined as a sequence of characters [noquote]+([quote][noquote]+[quote])? or [quote][noquote][quote]
        Specified by:
        splitEnvironmentAssignments in interface EnvironmentVariableAccessor
        Parameters:
        environmentAssignments - the string containing KEY=VALUE assignments separated with white characters
        processBackslashes - whether to treat a backslash as an ordinary or quoting character
        Returns:
        Map of separated environment settings.
      • splitEnvironmentAssignments

        @NotNull
        public @NotNull Map<String,​String> splitEnvironmentAssignments​(@NotNull
                                                                             @NotNull String environmentAssignments)
        Description copied from interface: EnvironmentVariableAccessor
        Splits "Environment settings" string into array of separate strings. Quoting using single and double quotes, but not backslashes is taken into consideration. An environment setting is defined as a sequence of characters. [noquote]+([quote][noquote]+[quote])? or [quote][noquote][quote]
        Specified by:
        splitEnvironmentAssignments in interface EnvironmentVariableAccessor
        Parameters:
        environmentAssignments - string containing KEY=VALUE assignments separated with white characters
        Returns:
        Map of separated environment settings.
      • forceLegalIdentifier

        @NotNull
        public static @NotNull String forceLegalIdentifier​(@NotNull
                                                           @NotNull String key)