How to exclude all subdirs but one from the project path?

i have a directory structure like this:




My project directory is a parent of Dir. I want SubA in my project path, but not SubB through SubD. This is easy enough, except that more subdirectories are created all the time, and I don't want them included. So, I don't want to specify every "exclude", but rather an "exclude all but".

Anyone know the answer?

2 comments
Comment actions Permalink

John Murph wrote:

i have a directory structure like this:


What happens if you exclude Dir and then explicitly add SubA as another
project root? (Would there be problems due to the overlap?)

0
Comment actions Permalink

Ok, I tried your suggestion, but it didn't seem to work. I tested this by using Ctrl-Shift-N to try to find a (non .java) file under SubA and it failed to locate it. This works if I don't exclude Dir.

It apears that the excludes "pre-emp" the project roots.

The other problem (though relatively minor) with your suggestion is that there are files in Dir that I do want to use. So excluding it would prohibit that.

Thanks for the idea.

0

Please sign in to leave a comment.