> I think we were still discussing the best way to implement 
> the features in
> the looptask <foreach>. Maybe we are just waiting on the work 
> do be done,
> and the changes to be committed. I would not call this a show-stopper.


I agree: this is not a show-stopper.

After reading all possible solutions to the ambiguity problem for looptask, 
I think that the best way to solve it would be to use referenced filesets,
as suggested by Philip Nelson. The resulting buildfile would look like this: 

<fileset ID="foo" >
   <include ......
</fileset>

<foreach ...type="FileSet" ref="foo">
        <do>
        <!--Stuff to do -->
        </>
</>

Naturally, these references could also be used by other tasks.

I looked into doing this by skimming through the Ant sources, and it seems doable.
Ant basically uses a base class DataType, which contains all reference logic (such as 
checking for circular references and such). AbstractFileSet (and others) extends this 
class.
This seems like a good way to do it, but I'm open for other suggestions.

I also wonder if the regex task i submitted will be added to the cvs, or whether it 
needs to be improved first.

Arjen


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to