ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <elstonk...@yahoo.com>
Subject Call a Macrodef using a property?
Date Wed, 30 Dec 2009 15:31:12 GMT
Is there any way to call a macrodef with the name of the macrodef held in a property?  Like
this (of course this doesn't work):

<project default="main">
  <target name="main">
    <property name="myProperty" value="myMac"/>
    <${myProperty}/>
  </target>
  <macrodef name="myMac">
    <sequential>
      <echo message="I made it in"/>
    </sequential>
  </macrodef>
</project>


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message