Ignoring Eclipse project files in SVN project
Asked Answered
O

6

54

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)?

Otero answered 19/10, 2009 at 23:49 Comment(0)
M
102

Preferences > Team > Ignored Resources

Makepeace answered 20/10, 2009 at 0:19 Comment(3)
In Eclipse Indigo it is a bit different. Properties > SVN Info > Right click in field with list of keywords > Add > Name will be svn:ignore, Property will be list of ignored files e.g. .project But this answer guided me in right direction, so thanks.Katabatic
The OP was looking for something that didn't use svn:ignore. But that's generally a better way to make sure they're not committed by anyone.Makepeace
@Makepeace solution works perfectly. I added the following patterns: .classpath .project .settings */.settings/* */target */target/*Especial
E
5

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
El answered 20/10, 2009 at 0:11 Comment(1)
Not specifically for Eclipse, but was very helpful to me.Consort
P
4

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

Protease answered 31/1, 2012 at 19:5 Comment(1)
.settings is sufficient.Encage
M
1

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

Manifold answered 19/10, 2009 at 23:52 Comment(0)
F
1

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
Fyn answered 13/6, 2012 at 15:32 Comment(1)
There is no place to add svn:ignore in the properties dialog.Bolide
D
0

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
Dictate answered 29/3, 2016 at 10:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.