@aa W
Yes, we can use delimiter="|" in a for loop - but only when the list itself is tokenized with a "|" separator.
Problem here is when you use
<xmlproperty file="Test.xml" collapseAttributes="true"/>
ANT by default scans the file and saves the list with a "," separator and I would like to override this default behavior.
Mater of fact while typing this, I just had a Eureka moment (Thanks to Mark!) and tried using
<xmlproperty file="Test.xml" collapseAttributes="true" delimiter="|"/>
now my script works as expected.
Output:
Test:
[echo] Sprint-1
[echo] Sprint-2
[echo] Sprint-3
[echo] 1.0.0, 1.0.1
[echo] 1.1.0, 1.1.1
[echo] 1.2.0, 1.2.1