ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: Fileset search file
Date Thu, 15 Sep 2005 17:23:49 GMT
fileset goes not guarantee that the files it matches will be returned in 
any particular order. I do believe that it will go depth-first, but within 
any given directory there is no guarantee on the order of the files in 
that directory, as this is dependant on the underlying JVM, native 
filesystem, etc.

To use your example, you might get back either:

        File1  File2  File3  File4  File5

or:

        File2  File1  File3  File5  File4

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)


João Augusto Charnet <joao.charnet@sfw.com.br> wrote on 09/15/2005 
04:04:44 PM:

> Hello, 
> I'm using Fileset to search through a series o files of the same 
> extension (say *.jsf). I'd like to know if file set does a depth 
> search, ou a width search through out the directories.
> Example:
> Let's say I have the following directory structure:
> ...
>     |BaseDir
>     |   |
>     |   |Dir1
>     |       |
>     |       |File1.jsf
>     |       |File2.jsf
>     |   |Dir2
>     |       |
>     |       |File3.jsf
>     |
>     |File4.jsf
>     |File4.jsf
> 
> What order would it return my files ?
> File1, File2, File3, File4, File5 ?
> Or 
> File4, File5, File1, File2, File3 ?
> 
> Thanks a lot.
> John.
> 
> -- 
> 
> [image removed] Softway & Softcomex 
> 
> João Augusto Charnet
> Computer Engineer - R&D Team
> 
> Phone/Fax: 55 19 3739-9261
> E-mail: joao.charnet@sfw.com.br 
> R. Conceicao, 233 - Cj, 609 - Centro
> 13010-050 - Campinas - SP - Brazil
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message