ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <>
Subject RE: completing the macrodef language
Date Wed, 26 May 2004 15:37:15 GMT

I think we are almost right there but, as anyone that
has used a macro languange, I think we are missing
the well known "ifdef" directive of most macro languajes.

This by the way is what others have already asked for.

Noticed that you cannot do this with a regular task, instead it needs
to be process by "macrodef" itself, so it has access to its metadata.

<macrodef name="a">
  <element name="foo"/>
    <javac ...../>
    <ifdef element="foo">
      <javac ...>
    <ifndef element="foo">
      <echo message="What? no foo :-("/>

That would give a more round functionality.

Jose Alberto

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message