Bugs item #3170005, was opened at 2011-02-01 18:22 Message generated for change (Tracker Item Submitted) made by gntleone You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3170005&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Functions Group: 0.91-alpha2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Lee (gntleone) Assigned to: Nobody/Anonymous (nobody) Summary: property::exists() evaluation issues Initial Comment: It appears the property::exists() function is evaluated after the include when attempting to us as a conditional argument to a task. since the idea is to determine if the property exists before using it, I would not have expected this behaviour. ex1: <echo message="service name is defined as ${service.name}" if="${property::exists('service.name')}" /> result1: Property evaluation failed. Expression: namespace is defined as ${namespace} ^^^^^^^^^ Property 'namespace' has not been set. ex2: <fileset id="deployed.assemblies" failonempty="false" basedir="${targetDirectory}"> <include name="**/*${appName}*.dll" if="${property::exists('appName')}"/> <include name="**/*${appName}*.exe" if="${property::exists('appName')}"/> <include name="**/*${service.name}*.dll" if="${property::exists('service.name')}"/> <include name="**/*${service.name}*.exe" if="${property::exists('service.name')}"/> <include name="**/*${namespace}*.dll" if="${property::exists('namespace')}"/> <include name="**/*${namespace}*.exe" if="${property::exists('namespace')}"/> </fileset> result2: Property evaluation failed. Expression: **/*${namespace}*.dll ^^^^^^^^^ Property 'namespace' has not been set. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3170005&group_id=31650 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers