ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Way for buildfile to verify that Ant version is 1.5.2 or grea ter ?
Date Fri, 22 Oct 2004 07:08:37 GMT
I thought you would know the right classes ;)

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Stefan Bodewig [mailto:bodewig@apache.org]
> Gesendet am: Freitag, 22. Oktober 2004 09:06
> An: user@ant.apache.org
> Betreff: Re: Way for buildfile to verify that Ant version is 1.5.2 or
> grea ter ?
> 
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message