<property name="rootdir" value="null" overwrite="false" />

Will do just fine.

- URS C. MUFF
SOFTWARE ARCHITECT      - RESEARCH LAB, QUARK EIF
QUARK INC.
[EMAIL PROTECTED]       - X6360
+1 (303) 894 3360

CONFIDENTIALITY NOTICE

This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended recipient,
or a person responsible for delivering it to the intended recipient, you are
hereby notified that you must not read this transmission and that any
disclosure, copying, printing, distribution, or use of the information
contained or attached to this transmission is STRICTLY PROHIBITED. If you
have received this transmission in error, please immediately notify the
sender by telephone +1 (303) 894-3360 or return e-mail message
[EMAIL PROTECTED] and delete the original transmission, its attachments, and
any copies without reading or saving in any manner. Thank you.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nant-users-
> [EMAIL PROTECTED] On Behalf Of Felice Vittoria
> Sent: Tuesday, October 19, 2004 3:08 PM
> To: Nant-Users (E-mail)
> Subject: [Nant-users] can i get a second opinion
> 
> Hello folks,
> 
> I'm using the latest version of NAnt:
> NAnt 0.85 (Build 0.85.1753.0; net-1.0.win32; nightly; 10/19/2004)
> 
> I have this simple test build file:
> 
> <?xml version="1.0"?>
> <project name="test" default="display">
>       <target name="display">
>               <property name="rootdir" value="null"
> unless="${property::exists(rootdir)}" />
>               <echo message="rootdir = ${rootdir}" />
>       </target>
> </project>
> 
> When I run this file I will get the following:
> Property evaluation failed.
> Expression: ${property::exists(rootdir)}
>                                ^^^^^^^
>     Property 'rootdir' has not been set.
> 
> 
> Is this correct?   What I'm trying to do is set a property if it doesn't
> exist.
> 
> Felice
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to