> > > We could just go for a nested fileset element after all. I'm
> > > implementing
> > > something similar for a type called <path> or <pathset>
> > > (similar to the Ant
> > > <path> element). Meaning :
> > >
> > > <fileset id="...">
> > >     <fileset refid="...." />
> > >     <include name="..." />
> > > </fileset>
> >
> > ok. I could implment this if community agrees.
> 
> yeah, hold off until we get more feedback.

Sure. 
 

> > > But that might ofcourse cause problems for tasks where the
> > > relative path of
> > > the files is determined (relative to the base directory of
> > > the fileset). For
> >
> > I see only way - Scan() on original fileset and add full 
> paths of found
> > files into new set. Could there be a problem with this approach?
> > Relative paths should be ok in this case, I hope.
> 
> Scan() on parent fileset would also perform scan on nested 
> filesets and
> include results in parent fileset. That's what you're saying, right ?

not sure how to handle:
<fileset id="foo">
   <include name="a"/>
</fileset>
<fileset id="foo">
   <fileset refid="foo"/>
   <include name="b"/>
</fileset>
We have to Scan() nested fileset when redefinition takes place. Not later
when outter fileset is used for first time... But it looks logical to me
since inner fileset is "used" in the definition of outter fileset.


> For tasks like <zip> support for multiple top level filesets 
> is still better
[snip] 
> You cannot accomplish this using nested filesets.

I see. For <zip> multiple top-level fileset will be indeed better.
 
> > As I looked into Ant docs I found interesting that Selector 
> idea. Is there
> > any plan to port it into NAnt? (post release of course)
> > http://ant.apache.org/manual/CoreTypes/fileset.html
> 
> Yeah, was hoping to find time to implement this, but things 
> aren't looking
> very good ;-)

Underestand. Maybe I'd find some time to look into it when I'll code other
fileset stuff.

Martin



-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to