How can I use an Ant foreach iteration with values from a file?
Posted
by Egon Willighagen
on Stack Overflow
See other posts from Stack Overflow
or by Egon Willighagen
Published on 2010-05-03T09:18:09Z
Indexed on
2010/05/03
9:28 UTC
Read the original article
Hit count: 324
In our Ant build environment, I have to do the same task for a number of items. The AntContrib foreach task is useful for that. However, the list is in a parameter, where I actually have the list in a file. How can I iterate over items in a file in an foreach-like way in Ant? Something like (pseudo-code):
<foreach target="compile-module" listFromFile="$fileWithModules"/>
I'm happy to write a custom Task, and welcome any suggestion on possible solutions.
© Stack Overflow or respective owner