Package org.apache.ivy.ant
Class IvyAntVariableContainer
java.lang.Object
org.apache.ivy.core.settings.IvyVariableContainerImpl
org.apache.ivy.ant.IvyAntVariableContainer
- All Implemented Interfaces:
Cloneable,IvyVariableContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.tools.ant.Project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getVariable(String name) private voidsetPropertyIfNotSet(String property, String value) voidsetVariable(String varName, String value, boolean overwrite) voidupdateProject(String id) Updates the Ant Project used in this container with variables set in Ivy.Methods inherited from class org.apache.ivy.core.settings.IvyVariableContainerImpl
getEnvironmentPrefix, getVariables, setEnvironmentPrefix, substituteMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ivy.core.settings.IvyVariableContainer
setEnvironmentPrefix
-
Field Details
-
overwrittenProperties
-
project
private org.apache.tools.ant.Project project
-
-
Constructor Details
-
IvyAntVariableContainer
public IvyAntVariableContainer(org.apache.tools.ant.Project project)
-
-
Method Details
-
getVariable
- Specified by:
getVariablein interfaceIvyVariableContainer- Overrides:
getVariablein classIvyVariableContainerImpl
-
setVariable
- Specified by:
setVariablein interfaceIvyVariableContainer- Overrides:
setVariablein classIvyVariableContainerImpl
-
updateProject
Updates the Ant Project used in this container with variables set in Ivy. All variables defined in Ivy will be set in the Ant project under two names:- the name of the variable
- the name of the variable suffixed with a dot + the given id, if the given id is not null
- Parameters:
id- The identifier of the settings in which the variables have been set, which should be used as property names suffix
-
setPropertyIfNotSet
-
clone
- Specified by:
clonein interfaceIvyVariableContainer- Overrides:
clonein classIvyVariableContainerImpl
-