<ifnot test="${property::exists('CCNetLabel')}"> <echo message="The CCNetLabel property does not exist"/> </ifnot>
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jay Williams Sent: Monday, June 19, 2006 10:30 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] How to test "if not propertyexists" 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. _________________________________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk - Portuguese - Svenska: www.cardinalhealth.com/legal/email _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users