ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
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.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23942

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

http://stefanbodewig.blogger.de/20031114

may be implemented by:

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

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

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


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


Mime
View raw message