Hi Roman

You have to pass the property name as a string :
use
<echo message="Property exists = ${property::exists('test')}"/>
instead of
<echo message="Property exists = ${property::exists( test )}"/>

check out http://nant.sourceforge.net/nightly/help/functions/property.exists.html

nb :  maybe a real example should be added in the manual. 



cheers

Thibaut




On Fri, 5 Nov 2004 09:48:19 -0600, Roman Semenov <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I have a question. Why the script below prints out "Property exists =
> False"?
> 
> I use NAnt 0.85 built on 01-Nov-2004.
> 
> Regards, Roman.
> 
> ==========================================================
> 
> <?xml version="1.0"?>
> <project name="Test Project">
> 
>    <property name="test" value="ABC"/>
> 
>    <echo message="Property value  = ${test}"/>
>    <echo message="Property exists = ${property::exists( test )}"/>
> 
> </project>
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to