ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject text support for macrodef
Date Thu, 22 Jan 2004 15:03:09 GMT
I would like to add support to <macrodef> to allow the text content
of macros to be placed in the macro instance:

use is like this:
    <macrodef name="echotest" textname="text">
      <sequential>
        <echo>@{text}</echo>
      </sequential>
    </macrodef>
    <echotest>
      Hello world
    </echotest>

The textname attribute value becomes a macrodef attribute that
gets set to the value of the text contents of the macro.

Peter

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


Mime
View raw message