Using Ant, how can I list sub folders only from the first level, and not going down the directory tree?
say I have:
dir1
-- dir21
----dir211
-- dir22
<dirset dir="dir1"/>
will list all dirs including dir211.
How can I avoid that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use dirset like that :
or
EDIT after comment
includes attributeandnested include nameshould be equivalent, here’s somesnippet working on my windows machine, given C:\foo\bar :
output :