I have a <foreach> task which runs on a list of >1000 strings, and calls
an ant task which extracts 2 sub-strings, interprets them as numbers,
calculates their sum, and replaces the 2 sub-strings with their sum
(this is done by writing the sub-strings to a properties file, loading
it and using the <math> task).
The problem is that running the <foreach> task so many times, even on an
empty task which doesn't do anything, takes a long time (over a minute).
So:
1) Is there a more efficient way to accomplish iteration over a list?
2) Is there a way to perform such a math operation in a regular regex
replacement, without using a foreach iteration?
Thanks,
Ephi