ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Way for buildfile to verify that Ant version is 1.5.2 or grea ter ?
Date Fri, 22 Oct 2004 07:05:46 GMT
On Fri, 22 Oct 2004, Jan Materne <Jan.Materne@rzf.fin-nrw.de> wrote:

> A non usual way is checking for the existing of special classes.  So
> you 'only' have to check which classes were added in a release and
> you could check for them.

It might help to have a concrete example ;-)

<available property="Ant-1.5.2-or-later"
           classname="org.apache.tools.ant.types.ResourceFactory"/>
<fail message="You must use Ant 1.5.2 or later"
      unless="Ant-1.5.2-or-later"/>

Stefan

-- 
http://stefanbodewig.blogger.de/

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


Mime
View raw message