ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parambathu Kandy, Yasser Arafat \(Cognizant\)" <YasserArafat.ParambathuKa...@cognizant.com>
Subject RE: how to get all folder names in a directory
Date Thu, 09 Feb 2006 04:53:43 GMT

Thanks Stefan. I used the basename task instead. It gives the last
element in the path.

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Thursday, February 09, 2006 10:18 AM
To: user@ant.apache.org
Subject: Re: how to get all folder names in a directory

On Wed, 8 Feb 2006, Parambathu Kandy
<YasserArafat.ParambathuKandy@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


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

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


Mime
View raw message