I am trying to execute a large ant build file that is provided to me, in which case I am having trouble understanding the functionality of xmlproperty. Consider this xml file, example.xml.
<main> <tagList> <tag> <file>file1</file> <machine>machine1</machine> </tag> <tag> <file>file2</file> <machine>machine2</machine> </tag> </tagList> </main>
There is a task in the assembly file that can be simplified for the following example:
<xmlproperty file="example.xml" prefix="PREFIX" />
As I understand it, if there was only one <tag> element, I could get the <file> content using ${PREFIX.main.tagList.tag.file} because it is roughly equivalent to writing this:
<property name="PREFIX.main.tagList.tag.file" value="file1"/>
But as there are two <tag> s, what is the value of ${PREFIX.main.tagList.tag.file} in this case? If this is some kind of list, how do I iterate over the <file> values?
I am using ant 1.6.2.
source share