Bugs item #1234822, was opened at 2005-07-08 15:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1234822&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: Tasks Group: 0.85 Status: Open Resolution: None Priority: 5 Submitted By: Ashley Moran (ashleymoran) Assigned to: Nobody/Anonymous (nobody) Summary: <exec>'s <arg/> evaluates even when if attr returns false Initial Comment: I use a lot of properties to control the flow of my scripts (like a configuration file. But the following (contrived) example will fail: <property name="foo-defined" value="true"/> <property name="foo" value="hello"/> <property name="bar-defined" value="false"/> <exec program="mycmd"> <arg if="${foo-defined}" line="${properties::get-value('foo')}"/> <arg if="${bar-defined}" line="${properties::get-value('bar')}"/> </exec> because ${properties::get-value('bar')} can't be evaluated It would make more sense if the argument line was only evaluated if the "if" expression evaluated to true ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1234822&group_id=31650 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers