I tried using the "for" task but it says it is not supported. I checked the antcontrib.properties file and it does not have an entry for it.
Is this a bug?
Not a bug with the library but one with the ant-contrib home page being outdated. Or at least that's where I fell into that trap, before looking at the README.
you need to use the xml,
<taskdef resource="net/sf/antcontrib/antlib.xml" />
instead of the antcontrib.properties.
home page definitely needs an update on this :-)
I don't know about that guys, mine is working fine using the antcontrib.properties:
<project name="MyProject" default="compile" basedir="." xmlns:cpptasks="antlib:org.sf.net.antcontrib.cpptasks">