Use test="${directory::exists(build.dir)}". Properties inside expressions
can be accessed directly without any decoration.

Jarek
----- 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: 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

Reply via email to