String fileName = getSettings().substitute(attributes.getValue("file"));
File file = new File(fileName);
if (!file.exists()) {
throw new SAXException(fileName + " doesn't exists !");
}
PropertiesFile props = new PropertiesFile(file, "project properties");
Enumeration<?> enumeration = props.propertyNames();
while (enumeration.hasMoreElements()) {
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);