I'm not very keen on mixing stuff into the foreach that leads to ambiguity.
I'm not sure what the correct solutions is, maybe something like this: <foreach property="foo" type="File"> <in> <fileset ... /> <in> <do> <!-- stuff --> </do> </foreach> So you can either use "in" as an attribute or element. And if you use the element form you must use a <do>. How does that sound? So the two valid forms would be: 1.) (how things work now) <foreach ...> <!-- stuff to do --> </> 2.) <foreach ...> <in/> <do> <!--Stuff to do --> </> </> ----- Original Message ----- From: "Arjen Poutsma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 20, 2003 8:22 AM Subject: RE: [nant-dev] Patch to let LoopTask work with Filesets > I agree that there appears to be an ambiguity in the buildfile. > > However, since a FileSet is not a task, and only tasks are executed > by foreach (since it is a TaskContainer), there is no real ambiguity. > > I also agree that this behavior could be made somewhat clearer by a special > <do> subelement, though. > > A > > > -----Original Message----- > > From: Matthew Mastracci [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 20, 2003 5:05 PM > > To: Arjen Poutsma > > Cc: [EMAIL PROTECTED] > > Subject: Re: [nant-dev] Patch to let LoopTask work with Filesets > > > > > > On issue with adding fileset support to the LoopTask is that > > you end up > > with ambiguity over what constitutes a subtask element. One > > possibility > > is to require a specific subelement for the subtasks - perhaps a <do> > > element. This message is from earlier this year: > > [snip] > > > ------------------------------------------------------- > This SF.net email is sponsored by: Tablet PC. > Does your code think in ink? You could win a Tablet PC. > Get a free Tablet PC hat just for playing. What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Nant-developers mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-developers > > ------------------------------------------------------- This SF.net email is sponsored by: Tablet PC. Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers