ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: Non-recursive fileset
Date Sat, 26 Aug 2006 19:01:34 GMT
Hello Gregory,

ant does not optimize the scanning of a directory based on selectors
such as depth, on based on include patterns.
Check whether adding this line

        <include name="*"/> 

brings an optimization.



  <path id="myFiles">
    <fileset dir="c:\myFiles" >
        <include name="*"/> 
        <depth max="0"/>

Lewis, Gregory wrote:
> All-
>    I am trying to get a listing of the files and folders in a directory.
> When I use the following target my machine appears to be searching
> through for every file under the root folder.  Is there a target or
> switch that I could add that would search only the folder passed in?  In
> addition, how do I get the root folder to not show up in the list?
>   <path id="myFiles">
>     <fileset dir="c:\myFiles" >
>         <depth max="0"/>
>     </fileset>
>   </path>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message