Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude directories & subdirectories from validation in Eclipse

How do I exclude a folder AND its sub-directories from validation in eclipse? I know that you can right click on a folder in Package Explorer and select Exclude Validation, but if you have sub-directories under it, you'd have to this for each and it isn't ideal for generated directories or ones with many sub-folders.

Any plug-ins that might be able to do this?

like image 826
Ayyoudy Avatar asked Jun 27 '11 15:06

Ayyoudy


People also ask

How do you exclude a directory?

To exclude multiple directories, OR them between parentheses. And, to exclude directories with a specific name at any level, use the -name primary instead of -path .

How do I find and exclude a directory?

We can exclude directories by using the help of “path“, “prune“, “o” and “print” switches with find command. The directory “bit” will be excluded from the find search!


2 Answers

I usually exclude validation in this way, I believe it will be recursive.

  • Right-click on your project and select Properties.
  • Choose Validation from the left-nav menu.
  • If it is not already selected choose "Enable project specific settings".
  • Find the validator that is relevant for what you want to exclude and click the "..." in the Settings column.
  • Highlight the Exclude Group and click Add Rule. (If you don't have any existing exclusions you may have to add an Exclude Group.)
  • Select Folder or file name as the Filter Type.
  • Click Next.
  • Select Browse Folder and find the folder you want to exclude.
like image 50
Sarah Haskins Avatar answered Oct 05 '22 13:10

Sarah Haskins


For those PHP developers who coding in Eclipse Mars.

  1. Right click on folder.
  2. choose "Use As Library Folder"

For example in laravel framwork, you can exclude /vendor, /storage and /node_modules folders from eclipse validation.

like image 37
yyc1217 Avatar answered Oct 05 '22 11:10

yyc1217