You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ja...@rzf.fin-nrw.de on 2004/10/22 09:08:37 UTC

AW: Way for buildfile to verify that Ant version is 1.5.2 or grea ter ?

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 <Ja...@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
>