David,
You actually need to enclose the expression in brackets, eg. unless="${convert::to-boolean(signed) = 0}".
Note : we might remove the convert::to-xxx method soon in favor of xxx::parse or xxx::from-yyy ... but this has not been decided yet ...
----- Original Message ----- From: "David Thielen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 28, 2004 10:38 PM
Subject: [Nant-users] How does convert::to-boolean() work?
I have the attribute:
unless='convert::to-boolean("${signed} = 0")'
and tried (just to see how it works):
unless='convert::to-boolean("true()")'
Where ${signed} is a '1'
I have tried everything to get this to work and keep getting:
C:\src\netClient\netClient.build(90,4):
'convert::to-boolean("1 = 0")' is not a valid value for attribute 'unless' of <e
xec ... />.
Cannot resolve 'convert::to-boolean("1 = 0")' to boolean value.
String was not recognized as a valid Boolean.
And
C:\src\netClient\netClient.build(90,4):
'convert::to-boolean("true()")' is not a valid value for attribute 'unless'
of <
exec ... />.
Cannot resolve 'convert::to-boolean("true()")' to boolean value.
String was not recognized as a valid Boolean.
Help!!!!
Thanks - dave
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users