ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Telling DirectoryScanner to scan each directory separately.
Date Mon, 26 Jan 2004 17:10:04 GMT
> 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

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


Mime
View raw message