Bugs item #1098013, was opened at 2005-01-07 17:06 Message generated for change (Comment added) made by ahildyard You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1098013&group_id=31650
Category: Core Group: 0.85 Status: Open Resolution: None Priority: 5 Submitted By: Alex Hildyard (ahildyard) Assigned to: Nobody/Anonymous (nobody) Summary: Call task no longer handles recursion in 0.85-rc1 Initial Comment: The "call" task no longer appears to support reentrancy. Am I doing something wrong, or is this a genuine bug? Sample project: <?xml version="1.0" encoding="utf-8" ?> <project name="call" default="setupLoop"> <property name="temp.loop" value="0"/> <target name="setupLoop"> <call target="performLoop"/> </target> <target name="performLoop"> <echo message="${temp.loop}"/> <property name="temp.loop" value="${int::parse(temp.loop)+1}"/> <call target="performLoop" if="${int::parse(temp.loop) < 10}"/> </target> </project> Error: "Call task cannot call its own parent" ---------------------------------------------------------------------- >Comment By: Alex Hildyard (ahildyard) Date: 2005-01-25 13:06 Message: Logged In: YES user_id=1114643 Hi Gert, Well, I've been using the call task to implement looping in order to iterate through the collection of nodes returned from an xmlpeek. As I understand, the foreach task doesn't currently support iteration through an XML nodeset, so this was the only solution to the problem I could find, short of writing a custom script task myself (which I've since done). It isn't a big problem for me, but are you aware of another way I could achieve the required effect using NAnt tasks alone? As an example, I'd like to iterate through the Config nodeset in a csproj file, reading out the RootNamespace attribute, etc. Thanks, Alex ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2005-01-23 16:52 Message: Logged In: YES user_id=707851 Alex, This is something that we deliberately prevent in NAnt 0.85, is this something you really really really need ? ;-) Gert ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1098013&group_id=31650 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers