Bob,
You can use the "if" function for this purpose.
For example:
<property name="language" value="D#"/>
<echo>${if (property::get-value('language')=='C#', '.cs', '.vb')}</echo>
But I'm sure there better solutions for this. Why not just define the
extension in a property as well ?
Gert
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Archer
Sent: vrijdag 1 december 2006 23:58
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] iif type expression
Is there a simple way to do an immediate if in an expression:
Basically if a property value = "CSharp" I want to return .cs and if it is
VB I want to return .vb ??
I want to use this in the asminfo task something like:
<asminfo ouput="AssemblyInfo.${WHAT goes here}"
language="${projectLanguage}">
???
Thanks,
BOb
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users