Package org.apache.ivy.ant
Class IvyAntVariableContainer
- java.lang.Object
-
- org.apache.ivy.core.settings.IvyVariableContainerImpl
-
- org.apache.ivy.ant.IvyAntVariableContainer
-
- All Implemented Interfaces:
java.lang.Cloneable
,IvyVariableContainer
class IvyAntVariableContainer extends IvyVariableContainerImpl implements IvyVariableContainer
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
overwrittenProperties
private org.apache.tools.ant.Project
project
-
Constructor Summary
Constructors Constructor Description IvyAntVariableContainer(org.apache.tools.ant.Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
java.lang.String
getVariable(java.lang.String name)
private void
setPropertyIfNotSet(java.lang.String property, java.lang.String value)
void
setVariable(java.lang.String varName, java.lang.String value, boolean overwrite)
void
updateProject(java.lang.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
-
-
-
-
Method Detail
-
getVariable
public java.lang.String getVariable(java.lang.String name)
- Specified by:
getVariable
in interfaceIvyVariableContainer
- Overrides:
getVariable
in classIvyVariableContainerImpl
-
setVariable
public void setVariable(java.lang.String varName, java.lang.String value, boolean overwrite)
- Specified by:
setVariable
in interfaceIvyVariableContainer
- Overrides:
setVariable
in classIvyVariableContainerImpl
-
updateProject
public void updateProject(java.lang.String id)
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
private void setPropertyIfNotSet(java.lang.String property, java.lang.String value)
-
clone
public java.lang.Object clone()
- Specified by:
clone
in interfaceIvyVariableContainer
- Overrides:
clone
in classIvyVariableContainerImpl
-
-