Hi:

I am using the 0.84 release of NAnt and I love it. However I don't seem
to find a 
way to do something rather simple: Execute a task depending on the value
of a property. 

How can this be done?

The <if> task only support testing if a property exists or if it's true,
what
if that property is not a bool:

<target name="sample>
        <sometask if="${env=='prod'}" .../>
or
        <if test="${env=='prod'}" />

</target>

Thanks.

Florian


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to