You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Parambathu Kandy, Yasser Arafat (Cognizant)" <Ya...@cognizant.com> on 2006/02/08 06:48:38 UTC

how to get all folder names in a directory

Hi,



I have many projects in my cvs repo.

I want to get all the folder names (not the entire path) into a list, so
that I can use the same in the foreach task.



Thanks in advance,

Yasser



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

Re: how to get all folder names in a directory

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 8 Feb 2006, Parambathu Kandy
<Ya...@cognizant.com> wrote:

> I want to get all the folder names (not the entire path) into a
> list, so that I can use the same in the foreach task.

Use a dirset to select them, then use pathconvert to turn them into a
list mapping away the directory holding the folders on the way.

Stefan

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