ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject Re: Telling DirectoryScanner to scan each directory separately.
Date Tue, 27 Jan 2004 12:23:55 GMT
Dominique Devienne wrote:

>>From: Antoine Lévy-Lambert [mailto:antoine@antbuild.com]
>>Antony paul wrote:
>>    
>>
>>>Hi all,
>>>  I am writing a custom task which needs to get the list of included
>>>files for each directory but not any subdirectory and files inside it.
>>>      
>>>
>>If you do not want to include subdirectories in a fileset, do something
>>like :
>>
>><fileset dir="somedir" id="myfileset">
>>    <include name="*"/>
>>    <!-- exclude directories -->
>>    <not>
>>        <type type="dir"/>
>>    </not>
>></fileset>
>>    
>>
>
>Just to be clear Antoine, the not/type is necessary to not have the
>files of type directories in the fileset, but the include with a
>single star still avoids recursing the sub-directory, after the
>speed-up enhancement you coded into DirectoryScanner? --DD
>
>
>  
>
*Yes* *Oui*

Antoine


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


Mime
View raw message