In functions, you do not need to enclose references to
properties in braces. So use this instead :
<delete dir="${src.dir}" if="${directory::exists(src.dir)}" />
Hope
this helps,
Gert
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bleedledeep
Sent: dinsdag 15 maart 2005 22:06
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] How To Use Variable in delete if constructI have the following line in my build file<delete dir=".\${src.dir}" if="${directory::exists('.\${src.dir}')}" failonerror="false" />Using the variable ${src.dir} inside the exists() call does not work. What is the syntax for using a variable inside the exists() function?
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.