GrouriQuich
New Member
I am currently loading properties from an XML file in Ant. However, I'd like to perform my current ant task inside a for loop while loading a new XML properties file for the same set of properties each time.I'm aware of the existence of ant-contrib's var task which allows me to override properties. However, I'm unsure of how to combine this with loading properties from an XML file. I thought at first about iterating through all of the properties and then setting them to new values using the propertyregex task. Unfortunately, as I started writing code to do that I realized I didn't know how to actually load the property values still, since they can't overwrite previously set properties. (Well, they can using the var task, but this can't be used to load from an XML file as far as I can tell.)Any ideas? What I'm ideally looking for is a task that would be called something like\[code\]<xmlvars file="myxmlpropertyfile.xml"/>\[/code\]which would function just like\[code\]<xmlproperty file="myxmlpropertyfile.xml"/>\[/code\]with the exception that it overwrites the variables.