How to exclude file from synchronizations with svn repo in Subclipse?

rll picture rll · Feb 11, 2011 · Viewed 9.8k times · Source

I want to exclude a file (.properties) in my project in Eclipse from being checked during synchronization with the svn repo. If I make a change in this .properties file in my Eclipse project, its icon will be marked indicating that the project is not synchronized with the repo. How can I avoid this?

I don't want to exclude this file from the repo, because from time to time I will commit a new version.

Answer

Andrei B. picture Andrei B. · Apr 11, 2013

Go to Window->Preferences->Team->Ignored Resources and add your pattern there. This way you bypass the "svn:ignore button disabled" problem and you get to fill in your own pattern, not only the files that you select.

In your case you should add .properties as a pattern. It will idefntify all the files with that name and ignore them, even if they are already in the repository. But, you should also delete them in from the svn if you've already commited them.