Date: 2010jun10
Product: Eclipse
Q. How do I exclude a file or folder from my Eclipse source?
A. A quick way:
- Right-click on the offending item (Can be a file or folder)
- Select Java Build Path > Exclude
This adds an "exclude pattern" to your project the "pattern"
is the exact path to the file or folder you right-clicked on.
To add a general pattern you can do:
- Project > Properties > Java Build Path > Source
- Click on "Excluded"
- Click on "Edit"
- Click on "Add"
I like to add these exclude patterns:
**/*.Old
**/Old/ Trailing slash is required
These will get Eclipse to ignore all files with ".Old" extension
and all folders called "Old".