ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject FileSet#iterator only returning files
Date Wed, 19 Oct 2005 19:23:16 GMT
Hi (Matt ;-),

the design decision to not return directories in FileSet affects the
tasks that want to read files and directories.

If I code a generic task that just uses iterator, I'll never see
directories from FileSet (or any of FileSet's subclasses), instead I
have to check whether I'm dealing with a fileset subclass.

Even worse, there is no way to get the included directories of

  <fileset dir="A"/>
  <fileset dir="B"/>

What shall we do?  Return files and directories and let the user
explicitly use a <type> selector would be my preference.


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

View raw message