This approach would make the macros obsolete. Instead I
would move the macro code into the targets you mention, and could do
<antcall target="${x}">

This is actually how my build file currently looks like. But I
want to switch to macros as they are more lightweight and controllable.


Felix

> You'd probably be better have individual properties as flags
> for each macro.
> So something like:
> <condition property="flagA">
> <equals arg1="${x} arg2="a"/>
> </condition>
> <condition property="flabB">
> <equals arg1="${x} arg2="b"/>
>  </condition>
> <condition property="flagC">
> <equals arg1="${x} arg2="c"/>
>  </condition>
> <target name="RunMacroA if="flagA">
> <macroA/>
> </target>
> <target name="RunMacroB if="flagB">
> <macroB/>
>  </target>
> <target name="RunMacroC if="flagC">
> <macroC/>
>  </target>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to