Thank you for your help. Now, what if I want to test for a subdirectory of the directory specified by the property? I want to do something like:
<if test="${directory::exists('${build.dir}/ConsumerWeb/bin')}" > <echo message="${build.dir}/ConsumerWeb/bin already exists..."/> </if> Where the subdirectory is appended to the property. This doesn't seem to work as I have coded above. Kevin -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: Saturday, September 11, 2004 1:32 AM To: Burton, Kevin; [EMAIL PROTECTED] Subject: Re: [Nant-users] Testing if a directory exists. Kevin, You don't need to surround property names with braces in expressions : <if test="${directory::exists(build.dir)}" > <echo message="${build.dir} already exists..."/> </if> Hope this helps, Gert ----- Original Message ----- From: "Burton, Kevin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 11, 2004 12:27 AM Subject: [Nant-users] Testing if a directory exists. What is the correct syntax for testing if a directory exists? I have tried: <if test="${directory::exists('${build.dir}') = false}" > <echo message="Making ${build.dir}..."/> </if> <if test="directory::exists('${build.dir}') = true" > <echo message="${build.dir} already exists..."/> </if> Both seem to be incorrect. Thank you for your help. Kevin ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users