String key = (String) enumeration.nextElement();
String value = getSettings().substitute(props.getProperty(key));
// put this variable on the context
IvyContext.getContext().getSettings().getVariableContainer().setVariable(key, value, true);
PropertyDescriptor property = new PropertyDescriptor(key);
property.setValue(value);
property.setBuildConfigurations(conf);
applyInheritableItemAttributesFromParentNode(property);
// override with explicit inherited scope attributes
handleInheritedScopeAttribute(attributes, property);
easyAntModuleDescriptor.getProperties().put(key, property);
}
} else {
if (attributes.getValue("name") == null) {
throw new SAXException("Can't set a null property!");
}
String propertyName = getSettings().substitute(attributes.getValue("name"));
String value = getSettings().substitute(attributes.getValue("value"));
// put this variable on the context
IvyContext.getContext().getSettings().getVariableContainer().setVariable(propertyName, value, true);
PropertyDescriptor property = new PropertyDescriptor(propertyName, getMd().getModuleRevisionId());
property.setValue(value);
property.setBuildConfigurations(conf);
applyInheritableItemAttributesFromParentNode(property);
// override with explicit inherited scope attributes
handleInheritedScopeAttribute(attributes, property);