Java – excludes folder names from eclipse file searches
How do I exclude a folder name from eclipse file search (ctrl h)? For example, if I want to search all files but exclude any files in a folder named foldername (and its subdirectories), what can I enter in file name mode to do this?
Solution
I have several options
First choice
If possible, select the folder range you want to search, then hold down Ctrl and click any folders you want to exclude from the search Press Ctrl - h to open the file search and select the selected resources option under scope
Second choice
Right click the folder to exclude, select properties, select derive, and then click apply This is valid because the default file search will exclude derived resources After searching, you can undo the derivation settings
Please note that I'm not familiar with the internal workings of eclipse and can't identify the potential side effects of temporary markup files because of this, but I suspect it should be OK