You are
already in an expansion, so you don't need the expansion round your
property. Try: <if
test="${not file::exists('file.to.check')}"> </if> Cheers, Bill -----Original
Message----- How do I use the <IF> task to check
for the existence of a file where the file name is stored in a property? The documentation shows <if test=”${not
file::exists(‘output.xlm’)}”> ... </if> but trying to do the following does not
seem to work. <property name=’file.to.check’
value=’output.xml’> <if test=”${not
file::exists(‘${file.to.check}’)}”> </if> It appears that the ${file.to.check} is
not expanded but taken literally Any ideas? Joe Uchytil UK businesses use 2 million tonnes of paper each year. THINK before you PRINT this email. ______________________________________________________________ CONFIDENTIALITY NOTICE This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately. The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While Marlborough Stirling has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment. Marlborough Stirling plc, Registered in England and Wales Registered No. 3008820, Jessop House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH Tel: 01242 547000 Fax: 01242 547100 http://www.marlborough-stirling.com |
- RE: [Nant-users] file::exists() problem Bill.Martin
- RE: [Nant-users] file::exists() problem Felice Vittoria
- Re: [Nant-users] file::exists() problem Merrill Cornish
- Re: [Nant-users] file::exists() problem Merrill Cornish