Chris,

 

Try this syntax:

 

<target name="CalculateBuildNum" description="Calculates the build number" if="${build.buildNum == 'Latest'}">

 

Cheers,

 

Bill

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Holt
Sent: 01 May 2006 20:00
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Error when trying to compare equality of string

 

I have a task defined like:

 

<target name="CalculateBuildNum" description="Calculates the build number" if="'${build.buildNum}' == 'Latest'">

 

This fails with an error like:

 

Cannot resolve expanded value ''Latest' == 'Latest'' of 'if' attribute to a Booean value.

What am I doing wrong?

 

Thanks,

 

Chris

Reply via email to