ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Bug in macrodef?
Date Mon, 08 Mar 2004 17:55:37 GMT
I replaced the use of <antcall> with <macrodef>, which used <replace>.

The old <antcall>'d target used <replacefilter token="@${name}@">, name
being the property passed to the <antcall>.

When going with <macrodef>, I knew I had to double-up the @ chars, but
I couldn't make it to work with <replacefilter token="@@@{name}@@">

Is this user-error? Or a bug in macrodef?

As a stop-gap solution, I replace the source document to use %name%
for the tokens to be replaced... --DD

    <macrodef name="replace-module-version">
      <attribute name="name" />
        <replace file="${SetupImage}/help/About.html"
          <replacefilter token="%@{name}%" property="version.full" />

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

View raw message