ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@mad.scientist.com>
Subject Re: Target if
Date Tue, 01 Aug 2000 09:10:39 GMT
At 07:09  1/8/00 +1000, you wrote:
>How can I get a Target to execute only if a file is *not* present?
>
>Is there a way of negating the value to the if attribute?
>
>I can obviously set a property if a file exists using available, but how
>to use the negative?

<available property="blah.present" file="blah.txt" />
<target name="blee" unless="blah.present">
...


does this do what you want ???
Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Mime
View raw message