Bugs item #940942, was opened at 2004-04-23 14:45 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=940942&group_id=31650
Category: Core Group: 0.8.4.0 Status: Open Resolution: None Priority: 5 Submitted By: Kevin Sagon (ksagon) Assigned to: Nobody/Anonymous (nobody) Summary: if & unless attribute of target tag Initial Comment: The if and unless attributes of the target tag are documented and are intended to function on the premise that they will "sense" the existence or non- existence of the property specified by their value. Unfortunately it looks as if they are coded so that if the property exists then an attempt is made to convert the value to a boolean and return that result. If I am reading the code right the value that is used for conversion is the value of the property specified, this will usually result in a conversion error as the value of the property was not intended to be used in this way. Indeed, the presence of the property is all that should be checked for to stay consistent with both the documentation and the Java version of the same functionality. The code in question is in the Target.cs source lines 108-117 (if attribute) and lines 148-157 (unless attribute). If you would like more details please feel free to contact me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=940942&group_id=31650 ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers