ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Search for folders and access them
Date Wed, 05 Aug 2009 08:12:48 GMT
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:rmredondo@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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message