There is a problem when running foreach with
parallel="true" when there are too many tasks running,
and they are heavy. Ant 1.6 has
the "threadsPerProcessor" property which enables to
limit the number of running threads; I think the ForEach
task should have the option to use this property.
I already have a patched source with this fix, only needs
to be submitted into cvs.