ryantm
ryantm

Reputation: 8427

How can I make Eclipse file search not include svn directories?

When I do a file search on eclipse it includes the .svn directories by default. I tried excluding them from the build path but they still appear on file search results.

Upvotes: 58

Views: 20554

Answers (9)

V.R.Manivannan
V.R.Manivannan

Reputation: 31

Eclipse import would also contain file of type .java.svn-base, so its better to give as in below image

[[1]: https://i.sstatic.net/szDxP.png][1]

Upvotes: 0

spaceman
spaceman

Reputation: 41

Excluding the .svn folders by making them derived stops then appearing in the search results, see here.

You have to do it manually for each folder, if you have a lot of .svn folders then it's not ideal.

Upvotes: 3

Reputation:

Following up on Mark Ingram's excellent answer, simply installing the plugin won't get you there -- You'll still need to Share your project in order for the automatic Search filtering to take hold. After you set up the SVN repository location from within the Subeclipse view you may Share your project by doing the following:

  1. From within Package Explorer, right-click the project name
  2. Select the Team context menu option and then Share Project....
  3. Step trough the wizard to tie your project to its location in the svn repository
  4. Once you complete that and the workspace rebuilds you are all set to enjoy filtered search.

Upvotes: 8

Brad Whitaker
Brad Whitaker

Reputation: 1174

Spaceman is right. With Helios, choose Project -> Properties -> Resource -> Resource Filters and then add an exclude filter for type "Folder" with name .svn.

Upvotes: 106

Mark Ingram
Mark Ingram

Reputation: 73713

If you install the subclipse plugin then it automatically excludes the .svn directories (plus provides some other cool stuff in the IDE).

http://subclipse.tigris.org/

If it does not work, simply restart Eclipse (sometimes it's needed on a fresh checkout)

Upvotes: 8

John Lamp
John Lamp

Reputation: 1

You can off course also select ALL the file name patterns to include in the file search dialog

Upvotes: -1

pdonelan
pdonelan

Reputation:

Click on the drop-down triangle in the top-right corner of the Navigator and choose "Filters..".

By default Eclipse only offers you ".class" and ".".

If you choose ".*" you'll hide .svn files. Obviously all other .something files will also be hidden.

Upvotes: -3

serg10
serg10

Reputation: 32717

If you are gonig down the plugin route, I tend to prefer subversive over subclipse.

Upvotes: 2

ColinYounger
ColinYounger

Reputation: 6865

Ah - OK. I don't use SubVersion per se, but would this be of any use? It claims it can do what you want...

Upvotes: 0

Related Questions