ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev Jackson <kevin.jack...@it.fts-vn.com>
Subject Condition: Exists
Date Wed, 03 May 2006 05:58:43 GMT
Hi,

I'm writing a BuildFileTest case and I really need to be able to do 
something like

<fail>
  <condition>
    <not><exists file="${test}"/></not>
  </condition>
</fail>

or more succinctly

'fail unless file ${test} exists'

It seems to be trivial to add a condition to the codebase, but I'm 
beginning to wander if there's a better way to do this.  Any advice 
appreciated.

Thanks
Kev

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


Mime
View raw message