Same result - the property isn't being set. 

-----Original Message-----
From: Robinson, Heath [mailto:[EMAIL PROTECTED] 
Sent: 17 May 2005 21:29
To: Brough, Nicolas (Contractor); nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Newbie problem with expressions

Try <echo message="${src.dir}" /> 


Heath
x3006

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brough,
Nicolas (Contractor)
Sent: Tuesday, May 17, 2005 3:24 PM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Newbie problem with expressions

Hi,

I know I've probably got something utterly wrong, but I can't get this
to work:

  <property name="build.dir" value="c:\tmp"/>
  <property name="src.dir" value="${directory::exists(build.dir)}"/>
  <echo> ${src.dir} </echo>

My understanding is that src.dir should be set to true or false (so I
can later use it for an "if" statement).  But all it does is throw the
log below - NAnt doesn't seem to be setting src.dir to anything.

BUILD FAILED

C:\tmp\stuck.build(6,4):
 Property 'directory::exists(build.dir)' has not been set.:
NAnt.Core.BuildException: C:\tmp\stuck.build(6,4):
 Property 'directory::exists(build.dir)' has not been set.

Any pointers on what I've got wrong would be much appreciated!

Thanks, Nic


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be
the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=ick
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to