tags:

views:

3281

answers:

9

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.

A: 

Doesn't eclipse only search in the build paths? So if you edit the build path selection in project properties you can exclude them there.

ColinYounger
A: 

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

ColinYounger
+5  A: 

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/

Mark Ingram
This did not work for me.
John
Yes, the latest version seems to have "issues". I'm unsure why, my .svn directories are no longer hidden either.
Mark Ingram
+1  A: 

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

serg10
A: 

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.

This will only hide files from the Navigator view, it doesn't exclude them from searches.
Cedric Beust
+4  A: 

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 Subclipse 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.
A: 

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.

spaceman
A: 

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

John Lamp
+1  A: 

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

Also ensure that you have checked the recursive box
Mike Schall