I figured it out. I needed to change line 2 to:
<property name="SinglUBuildFile" value="${property::exists('SingleBuildDirectory')}" />
The quotes needed to be specified around the property name.
Trane eBusiness
QED Team
Phone: 931-905-5386
Fax: 931-648-5901
_____________________________________________
From: Byrd, Payton
Sent: Wednesday, November 10, 2004 4:14 PM
To: '[EMAIL PROTECTED] Sourceforge. Net'
Subject: Possible bug with property::exists
OK, simple project:
<project>
<property name="SingleBuildFile" value="${property::exists(SingleBuildDirectory)}" />
<echo message="!!!! ${SingleBuildDirectory} ${SingleBuildFile}" />
<echo message="Using single build file mode." if="${SingleBuildFile}" />
</project>
If you call it with: nant -D:SingleBuildDirectory=\EBusiness\Utilities
You get:
[echo] !!!! \EBusiness\Utilities False
If you call it with: nant
You get:
BUILD FAILED
D:\EBusiness\default.build(4,26):
Property evaluation failed.
_expression_: ${property::exists(SingleBuildDirectory)}
^^^^^^^^^^^^^^^^^^^^
Property 'SingleBuildDirectory' has not been set.
Total time: 0.2 seconds.
Shouldn't the first use case return True for ${SingleBuildDirectory} ?
Payton Byrd
Trane eBusiness
QED Team
Phone: 931-905-5386
Fax: 931-648-5901
