<echo message="version saved
${functions::set_value_to_file('C:\Autotests\V5.2.1\Results\Logs\NAnt.status.xml',
'version', Version)}" />
Once you have opened the ${} _expression_, you don't use
it to reference properties or functions any more. So in the above, your
function is passing two strings, "C:\Autotests\..." and "version" and
the value of the Version property.
Could anyone tell me how to pass property value as argument of function? In this example, i have property "Version" which should be third argument of function "set_value_to_file" but function gets "${Version}" string instead of property value.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vrata Cermak
Sent: Tuesday, November 14, 2006 9:36 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] passing property as argument of function
<property name="Version" value ="5.321.5" />
<echo message="version saved ${functions::set_value_to_file('C:\Autotests\V5.2.1\Results\Logs\NAnt.status.xml', 'version', '${Version}')}" />
Vrata48
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users