Re: [Nant-users] Beginners problems with variables

2005-05-11 Thread Troy Laurin
Malcolm, You have fallen victim to the most common error when using functions... never nest your _expression_ evaluation brackets ${} ${directory::exists('${build.dir}')} becomes ${directory::exists(build.dir)}, and similar for your other expressions. This is demonstrated in the fourth example o

Re: [Nant-users] Beginners problems with variables

2005-05-08 Thread Ian MacLean
this is your problem: ^^ don't quote variable names inside expressions - they will be treated as literal strings. Use: ${directory::exists(build.dir)} instead. The reason you're seeing mixed true and false output

[Nant-users] Beginners problems with variables

2005-05-08 Thread Malcolm Anderson
I'm using nant 0.85 rc3 on an xppro box I am using a variable to hold the word "build" (which is my build directory) however, directory::exists seems to be working unexpectedly. specifically notice that what looks like "exists('build')" seems to return both true and false. Am I missing somethin