public interface IEnvironmentVariableManager
Modifier and Type | Method and Description |
---|---|
IContributedEnvironment |
getContributedEnvironment() |
String |
getDefaultDelimiter() |
IEnvironmentVariable |
getVariable(String name,
org.eclipse.core.resources.IBuildConfiguration config,
boolean resolveMacros)
Returns the named environment variable in the given build configuration.
|
IEnvironmentVariable |
getVariable(String name,
ICConfigurationDescription cfg,
boolean resolveMacros) |
IEnvironmentVariable[] |
getVariables(org.eclipse.core.resources.IBuildConfiguration config,
boolean resolveMacros)
Returns a list of environment variables for the given build configuration.
|
IEnvironmentVariable[] |
getVariables(ICConfigurationDescription cfg,
boolean resolveMacros)
if environment variable names are case insensitive in the current OS,
the environment variable provider will remove the duplicates of the variables if their names
differ only by case
|
boolean |
isVariableCaseSensitive() |
void |
setEnvironment(Map<String,String> env,
org.eclipse.core.resources.IBuildConfiguration config,
boolean resolveMacros)
Set the environment for a given build configuration.
|
IEnvironmentVariable getVariable(String name, ICConfigurationDescription cfg, boolean resolveMacros)
name
- environment variable name
if environment variable names are case insensitive in the current OS,
the environment variable provider will query the getVariable method of suppliers always
passing it the upper-case variable name not depending on the case of the variableName
passed to the IEnvironmentVariableProvider.getVariable() method. This will prevent the
supplier from answering different values for the same variable given the names that differ
only by case. E.g. if the current OS does not support case sensitive variables both of the
calls below:
provider.getVariable("FOO",level,includeParentContexts);
provider.getVariable("foo",level,includeParentContexts);
will result in asking suppliers for the "FOO" variableIEnvironmentVariable[] getVariables(ICConfigurationDescription cfg, boolean resolveMacros)
IEnvironmentVariable[] getVariables(org.eclipse.core.resources.IBuildConfiguration config, boolean resolveMacros)
config
- the build configurationresolveMacros
- whether to resolve macros in the variable valuesIEnvironmentVariable getVariable(String name, org.eclipse.core.resources.IBuildConfiguration config, boolean resolveMacros)
name
- the name of the environment variableconfig
- the build configurationresolveMacros
- whether to resolve macrosvoid setEnvironment(Map<String,String> env, org.eclipse.core.resources.IBuildConfiguration config, boolean resolveMacros)
env
- environment variable mapconfig
- build configurationresolveMacros
- whether to resolve macrosString getDefaultDelimiter()
boolean isVariableCaseSensitive()
IContributedEnvironment getContributedEnvironment()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.