Ignoring Eclipse project files in SVN project

SvnSubclipseIgnoreEclipse Pdt

Svn Problem Overview


I have a PHP project set up in Eclipse with SVN support. Now, Eclipse adds its project files .buildpath and .project to the project and Subclipse wants to add it to the repository.

Now I could just use svn:ignore to let SVN ignore the files, but that's not an option for various reasons. So, is there a way to make Eclipse and Subclipse ignore the files (which it should anyway)?

Svn Solutions


Solution 1 - Svn

Preferences > Team > Ignored Resources

Solution 2 - Svn

Can you use global-ignores? If yes, customize it in your config file:

  • On Windows: C:\Documents and Settings\%USERID%\Application Data\Subversion\config
  • On Linux: ~/.subversion/config

Solution 3 - Svn

If you want to ignore folders in the eclipse ignored resources, the pattern is */.settings/* for the .settings folder for example

Solution 4 - Svn

Can you just uncheck the box for "Show unversioned files" in the commit window?

Solution 5 - Svn

If you right click on the folder in eclipse, and select Show Properties... you can add the svn:ignore right there and have it cascade down to every folder if you choose.

You could the following as a template:

svn:ignore

.settings
.project
.classpath
target

Solution 6 - Svn

> if above answer (tortoise) has no option for commit window directly then

  1. go in tortoise setting -->context menu --> check the click on hide Menus for the unversioned path

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionFranzView Question on Stackoverflow
Solution 1 - SvnJW.View Answer on Stackoverflow
Solution 2 - SvnPascal ThiventView Answer on Stackoverflow
Solution 3 - SvnDavid M. CoeView Answer on Stackoverflow
Solution 4 - Svndavethegr8View Answer on Stackoverflow
Solution 5 - SvnVehemonView Answer on Stackoverflow
Solution 6 - Svnjaskirat SinghView Answer on Stackoverflow