public class EnvVariablesInjector extends TreeMap<String,EnvVariablesInjector.Entity>
CustomTool
.Modifier and Type | Class and Description |
---|---|
static class |
EnvVariablesInjector.Entity
Internal entry, which describes modification of Environment Variables
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
static EnvVariablesInjector |
create(String props)
Creates a new injector for the specified properties.
|
static EnvVariablesInjector |
Create(String props)
Deprecated.
Use
create(java.lang.String) instead.
This method will be removed in future versions. |
void |
Inject(EnvVars target)
Deprecated.
Use
injectVariables(hudson.EnvVars) instead.
This method will be removed in future versions. |
void |
injectVariables(EnvVars target)
Inject variables into EnvVars
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
equals, hashCode, isEmpty, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove
@Nonnull public static EnvVariablesInjector Create(@Nonnull String props) throws IOException
create(java.lang.String)
instead.
This method will be removed in future versions.IOException
@Nonnull public static EnvVariablesInjector create(@Nonnull String props) throws IOException
props
- Properties in Java Properties formatIOException
- Cannot load properties from the stringpublic void Inject(EnvVars target) throws IOException
injectVariables(hudson.EnvVars)
instead.
This method will be removed in future versions.IOException
public void injectVariables(@Nonnull EnvVars target) throws IOException
target
- Target variablesIOException
- Exception during modification of EnvVarsCopyright © 2016–2021. All rights reserved.