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 void
setPropertyIfNotSet
(String property, String value) void
setVariable
(String varName, String value, boolean overwrite) void
updateProject
(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, substitute
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getVariable
in interfaceIvyVariableContainer
- Overrides:
getVariable
in classIvyVariableContainerImpl
-
setVariable
- Specified by:
setVariable
in interfaceIvyVariableContainer
- Overrides:
setVariable
in 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:
clone
in interfaceIvyVariableContainer
- Overrides:
clone
in classIvyVariableContainerImpl
-