I have a Path collection in Ant, and I need to loop through it in reverse order.
I use AntContrib's for
loop, like this:
<for param="foo">
<path refid="bar" />
<sequential> ... </sequantial>
</for>
I need to loop through the elements of bar
in reverse order. I can't change how the Path got created in the first place. I could always write a custom Ant task in Java, but my build currently runs without any custom tasks, and I'd rather avoid that for such a seemingly simple task.
Would Ant JavaScript be able to do this ? (and if so, how?)
Any help would be appreciated!