wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Get Dir List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Get Dir List" Watch "Get Dir List" New topic
Author

Get Dir List

Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi All,

I want to get Dir List from a root folder using ant script.

The problem in DirSet is, it brings subdirectory in the list. example



I will provide Root Folder as Input, the Dir List includes SubDir2_A and SubDir3_A and SubDir3_B, But i want to get only Dir1,Dir2 and Dir3.

Can anyone tell how to handle this? thanks in advance, your input is more valuable.


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Get Dir List
 
Similar Threads
Basic Ant excludes question
Using find, excluding directories
Moving files in java
Development: trouble with import and classpath
classpath setup by taking jars from multiple directory