In the documentation I see how to test if a property exists:

 

<if propertyexists="myProp">
    <if propertytrue="myProp">
        <echo message="myProp is '${myProp}'" />
    </if>
</if>

 

But how to I test if the property doesn’t exist? Here’s what I want to do:

 

<if not propertyexists=”CCNetLabel”>

     <property name=”CCNetLabel” value=”1.2.3.4” />

</if>

 

This is if I want to run the NAnt script from the command line instead of from CruiseControl.NET.

 

Thanks,
Jay

 

.........................................................................................

Jay Williams
Software Engineer
M:Metrics, Inc.

t    +1 206 447 1860
f    +1 206 447 1855

www.mmetrics.com

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

mobile market measurement
Because there’s more to the mobile market than just talk.
 

 

_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to