Package org.apache.ivy.plugins.parser.m2
Class PomModuleDescriptorWriter.IvyVariableContainerWrapper
java.lang.Object
org.apache.ivy.plugins.parser.m2.PomModuleDescriptorWriter.IvyVariableContainerWrapper
- All Implemented Interfaces:
Cloneable,IvyVariableContainer
- Enclosing class:
- PomModuleDescriptorWriter
private static final class PomModuleDescriptorWriter.IvyVariableContainerWrapper
extends Object
implements IvyVariableContainer
Wraps an
IvyVariableContainer delegating most method calls to the wrapped instance,
except for a set of variables which are only stored locally in the wrapper, and not
propagated to the wrapped instance.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIvyVariableContainerWrapper(IvyVariableContainer variables) -
Method Summary
Modifier and TypeMethodDescriptionclone()getVariable(String name) voidsetEnvironmentPrefix(String prefix) Specifies the prefix used to indicate a variable is an environment variable.voidsetVariable(String varName, String value, boolean overwrite)
-
Field Details
-
variables
-
localVariables
-
-
Constructor Details
-
IvyVariableContainerWrapper
-
-
Method Details
-
setVariable
- Specified by:
setVariablein interfaceIvyVariableContainer
-
setEnvironmentPrefix
Description copied from interface:IvyVariableContainerSpecifies the prefix used to indicate a variable is an environment variable. If the prefix doesn't end with a '.', it will be added automatically.- Specified by:
setEnvironmentPrefixin interfaceIvyVariableContainer- Parameters:
prefix- the prefix to use for the environment variables
-
getVariable
- Specified by:
getVariablein interfaceIvyVariableContainer
-
clone
- Specified by:
clonein interfaceIvyVariableContainer- Overrides:
clonein classObject
-