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

-----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
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
<[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to