On Friday 25 April 2003 14:34, Stefan Bodewig wrote: > On Fri, 25 Apr 2003, Jose Alberto Fernandez > > In simple non-ambiguos cases like the above this could be without the > trick. > > <copy ...> > <classfileset ...> > </copy> > > <condition> > <true/> > </condition>
This is exactly what dynamicElement is for. For example: as ConditionBase has dynamicElement(Condition c) and as IfTask extends ConditionBase, and OutOfDate implements Condition, the following works with my build: <if> <outofdate> <targetfiles path="build.xml"/> <sourcefiles path="build.xml"/> </outofdate> <else> <echo message="build.xml is not outofdate"/> </else> </if> Peter.