Jose Alberto, I think I understand your needs, but really, this is something that would be stretching my picture of Ant way to far.
What you propose might be purely declarative but it points into a direction I really don't want to see Ant traveling. I share Pete's view that soon thereafter somebody would come and say <if>/<elseif>/<else> is yet another way to write <case>. After that comes "why do we only set properties, we could call a target like antcall does as well" .... No, please lets not get onto that road. I think what you - together with others who ask for procedural features, template mechanisms and the like - want to achieve, could be the driving force of a front end to Ant that encapsulates all this, creates a (possible ugly) build file and feeds it to Ant. Preferably this would work without actually writing that file - generating SAX events for example. Would you be interested in helping to develop such a front end? This might as well help us moving some parts out of Ant's core that don't really seem to belong there (though I doubt Pete and I agree on which parts that might be). Stefan
