public interface CommandLineToolInvocationEnvironmentVariables
Modifier and Type | Method and Description |
---|---|
static CommandLineToolInvocationEnvironmentVariables |
empty()
Creates the empty invocation environment variables.
|
static CommandLineToolInvocationEnvironmentVariables |
from(File propertiesFile)
Creates the invocation environment variables from a .properties file.
|
static CommandLineToolInvocationEnvironmentVariables |
from(List<?> environmentVariables)
Creates the invocation environment variables from the specified list.
|
static CommandLineToolInvocationEnvironmentVariables |
from(Map<String,?> environmentVariables)
Creates the invocation environment variables from the specified map.
|
static CommandLineToolInvocationEnvironmentVariables |
from(Properties properties)
Creates the invocation environment variables from a
Properties instance. |
List<String> |
getAsList()
Returns the environment variables as a (key=value)-pair list.
|
Map<String,String> |
getAsMap()
Returns the environment variables as a (key, value)-pair map.
|
static CommandLineToolInvocationEnvironmentVariables |
inherit()
Creates the invocation environment variables from the current process.
|
CommandLineToolInvocationEnvironmentVariables |
plus(CommandLineToolInvocationEnvironmentVariables environmentVariables)
Merges the current environment variables with the specified environment variables.
|
Map<String,String> getAsMap()
List<String> getAsList()
CommandLineToolInvocationEnvironmentVariables plus(CommandLineToolInvocationEnvironmentVariables environmentVariables)
environmentVariables
- the environment variables to merge with this instance.static CommandLineToolInvocationEnvironmentVariables from(@Nullable List<?> environmentVariables)
environmentVariables
- the environment variables to usestatic CommandLineToolInvocationEnvironmentVariables from(Map<String,?> environmentVariables)
environmentVariables
- the environment variables to usestatic CommandLineToolInvocationEnvironmentVariables inherit()
static CommandLineToolInvocationEnvironmentVariables empty()
static CommandLineToolInvocationEnvironmentVariables from(File propertiesFile)
propertiesFile
- a file from which to load the environment variablesstatic CommandLineToolInvocationEnvironmentVariables from(Properties properties)
Properties
instance.properties
- a Properties
instance of environment variables to use