commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Murdoch <adammurd...@apache.org>
Subject Re: [latka][jelly] commons-vfs?
Date Fri, 19 Jul 2002 06:27:19 GMT
On Thu, 18 Jul 2002 02:52, James Strachan wrote:
> OK so now we've got the first cut of VFS as a commons component, how would
> you see this working inside Ant/Jelly/Latka/Anteater?
>
> The way the iteration works in Jelly is to define a <fileset> then iterate
> over it. e.g.
>
> <j:jelly xmlns:j="jelly:core" xmlns="jelly:ant">
>
>     <!-- create a scanner -->
>     <fileScanner var="scanner">
>         <!-- define some regular Ant style filesets -->
>         <fileset dir="src/test" includes="**/*.jelly"/>
>     </fileScanner>
>
>     <!-- now iterate through the files -->
>     <j:forEach var="file" items="${scanner.iterator()}">
>         <!-- process the file in some way-->
>         Found ${file.absolutePath}
>     </j:forEach>
>
> </j:jelly>
>
>
> So maybe we need some way to define a VFS fileSet and work in a similar
> way? Then we can iterate over the set, do set unions, manipulations etc.

I did up a couple of vfs-aware fileset implementations in myrmidon, along with 
a bunch of selectors, and some tasks like <copy>, etc.  I could look at 
backporting these to ant 1.x and adding them to the vfs tree.  It would 
definitely be good to make <fileset> more set-like.

-- 
Adam

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message