How to exclude specific folders or files from validation in Eclipse?

In the Validation section of Window > Preferences you can add different rules in settings (...) column, you can add a "Folder or file name rule" in the Exclude Group for XML types.


This is what I do to exclude a folder from validation in a project. For me this works for javascript and other warnings/errors.

  • Right Click Folder
  • Click Resource, ResourceFilters
  • Click "Add"
  • Set the following Exclude All, Files and Folders, All Children, add an asterisk (*) to the File and Folder Attributes input field (highlighted in the image below)

Note: In Eclipse Indigo you have to Right click the folder and select properties and then select resource in the left navigation.

enter image description here

Tags:

Eclipse