Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I exclude some folders from my Eclipse project?

I'm adding an eclipse project to our existing code-base, and I'd like to know if there is a way to exclude some directories from being picked up by eclipse at all? The reason is that we have a huge "third-party" directory in our repository that cannot be present in the project for the pair-programming plugin we are using to be able to sync efficiently.

Any clues?

like image 888
jkp Avatar asked Jul 27 '09 12:07

jkp


People also ask

How do I exclude files from a folder?

(2) Go to the "Settings" tab and Click "Exclude files and locations". Then, click "Browse". (3) Here, at this step, you can use either a file or a folder. Select a file or a folder and click OK.


2 Answers

There is a straight way to do it:

  1. Right-click a project folder in Project Explorer tree and go to "Properties".
  2. Resource -> Resource Filters.
  3. Add as many exclusion filters for files/folders as you like.

P.S. If your project tree is not updated automatically you may have to press F5 while having input focus in Project Explorer window.

like image 88
Gleb Varenov Avatar answered Oct 13 '22 05:10

Gleb Varenov


Filters will hide resources from view, but they're still in the project. If you create a project in another location you can create linked resources to the folders you want to include in your project.

For reference I posted another answer that describes how to use linked resources in more detail.

like image 35
Rich Seller Avatar answered Oct 13 '22 06:10

Rich Seller