Try passing a string by using single quotes like: “${environment::variable-exists('temp')}”.

 

--Edwin

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Devin Grant
Sent: Monday, September 20, 2004 12:16 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Calling Environment functions

 

I have the release version of NAnt (build 0.85.1720.0) on my machine and I am unable to call “${environment::variable-exists(temp)}”.

 

Error message:

Property evaluation failed.

_expression_: ${environment::variable-exists(temp)}

                                                                               ^^^^

    Property 'temp' has not been set.

 

The “temp” variable exists in my system environment.  Can someone please help me figure out what I am doing wrong here?

 

Thanks,

 

-Devin

Reply via email to