ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henk van Voorthuijsen <voo...@xs4all.nl>
Subject Re: test if exists
Date Fri, 10 Jul 2009 11:21:08 GMT
On Thu, 2009-07-09 at 10:13 +0200, Horvath Adam wrote:
> > <fail>
> >  Give more command line arg
> >  <condition>
> >    <isset property="propname"/>
> >  </condition>
> > </fail>

An even simpler way would be:

  <fail unless="propname"/>

See the documentation: http://ant.apache.org/manual/CoreTasks/fail.html

Henk


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


Mime
View raw message