Hi,
Dominique Devienne wrote:
>> String[] excludes = {"**\\**"};
>
>
> Never use back-slashes. It's not portable.
>
> To include only files and not dirs, you can use a <type> selector. The
> only problem is that it probably twarts the smarts added by Antoine in
> directory scanner to not scan the directories themselves. You end up
> with the correct list of files, simply not as fast. --DD
>
if i understand you right =
if i want to list files in rootdirectory
only, but exclude all dirs/files beyond rootdir, using DirectoryScanner
ain't possible ?!
So i have to roll my own thing.
i thought, i'll take a thing that's already around in core classes of
ant, DirectoryScanner in that case.
OK, i understand that includes/excludes are mostly for naming
conventions, f.e. i want only txtfiles that start with foobar* or
similar.
But it looks like i can't exclude subdirectories, like i that it
were possible with the right pattern.
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]