[EMAIL PROTECTED] wrote:
This seems like it should be fairly simple, but i cant get it to work.

I have two properties and i want to test to see if their string values are the
same.

i've tried many, many combinations, such as the following:

<if test="${property::get-value(core.project.stub)} ==
${property::get-value(sql.test)}" >

<if test="${core.project.stub} == ${sql.test}" >

<if test="string::contains(${core.project.stub}, ${sql.test})" >

what you're looking for is :

<if test="${property::get-value(core.project.stub) = 
property::get-value(sql.test)}" >

the problem you're having is that the ${} syntax denotes the entire expression 
rather than a single property.


see :

http://nant.sourceforge.net/release/latest/help/fundamentals/expressions.html#expression-syntax

for more examples of NAnt expression syntax.

Ian






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to