ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <>
Subject Re: [VOTE] local for 1.6
Date Tue, 18 Nov 2003 15:18:54 GMT
(hopefully this should be the final feature vote for 1.6)

The local feature allows local properties - properties
that are valid only for the enclosing scope.

This is a useful feature in general and for macrodef in particular.
For example the macrodef in Stefan's blog:

may be implemented by:

  <macrodef name="check-and-fail">
    <attribute name="class"/>
      <local name="it-is-there"/>
      <available classname="${class}" property="it-is-there"/>
      <fail unless="it-is-there">Couldn't find ${class}</fail>

  <check-and-fail class="org.example.Foo"/>
  <check-and-fail class="org.example.Bar"/>

[ ] local for ant 1.6
[ ] wait for ant 1.7

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

View raw message