Ant does "not go into" a folder. It scans them. You could define a <fileset> which returns only the paths to these files:
<fileset dir="." includes="**/certain.file"/> Here the wildcard "**" is interesting: every subdirectory including recursive. If you only want the directories directly under "." choose the "*" wildcard. Jan >-----Ursprüngliche Nachricht----- >Von: Redondo Gallardo, Raul Maria >[mailto:rmredo...@eservicios.indra.es] >Gesendet: Mittwoch, 5. August 2009 09:34 >An: Ant Users List >Betreff: Search for folders and access them > >Hello Users, > > > >I'm working with a folders hierarchy and I don't know the names of the >subfolders. Is it possible with ANT to go into every subfolder which >exist or I must use an external application? > > > >I want to check every folder to see if contains a certain file and do >things depending the file contained into the folder. The actions I know >how to do it with ANT, but not the way to search into all subfolders. > > > >Can anyone help me? > > > >Thank you very much. > > > >Best regards, > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org