John,

You should be using NAnt 0.85 RC2.  The docs you looked at are those for
that version of NAnt. This is clearly indicated in the upper right corner of
each page of the user manual.

Gert 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> John Hardin
> Sent: donderdag 17 februari 2005 22:31
> To: NAnt Users mailing list
> Subject: [Nant-users] Can't compare longs and ints???
> 
> Hey all.
> 
> I'm rather surprised to see this:
> 
> (nant 0.85 rc1)
> 
> c:\.....\standard-build.include(205,4):
> Operator '==' cannot be applied to arguments of type 'long' and 'int'.
> Expression: 
> ${file::get-length('Documentation_Excludes_List.txt') == 0}
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> The documentation explicitly mentions comparisons of longs and ints in
> the examples. I get the same problem with greater than and less than.
> 
> Or am I missing something terribly obvious?
> 
> ..I also tried 
>    ${file::get_length('file') == file::get_length('emptyfile')}
> and got an error saying == can't be used to compare long to long!
> 
> --
> John Hardin
> Development and Technology group (Seattle)
> CRS Retail Systems, Inc.
> 3400 188th Street SW, Suite 185
> Lynnwood, WA 98037
> voice: (425) 672-1304
>   fax: (425) 672-0192
> email: [EMAIL PROTECTED]
>   web: http://www.crsretail.com
> --------------------------------------------------------------
> ---------
>  If you smash a computer to bits with a mallet, that appears to count
>  as encryption in the state of Nevada.
>                                                - CRYPTO-GRAM 12/2001
> --------------------------------------------------------------
> ---------
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nant-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to