ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Fileset search file
Date Fri, 16 Sep 2005 05:26:15 GMT
João Augusto Charnet wrote:

> 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.

The javadoc says that the order is not determined. The current
implementation would rather deliver the first option, but you should not
rely on it.

Cheers,

Antoine

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message