ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
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"/>
  <sequential>
    <javac ...../>
    <ifdef element="foo">
      <javac ...>
        <foo/>
      </javac>
    <ifdef>
    <ifndef element="foo">
      <echo message="What? no foo :-("/>
    </ifndef>
  </sequential>
</macrodef>

That would give a more round functionality.

Jose Alberto

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message