Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 545
rll Avatar asked Feb 10 '11 23:02

rll


2 Answers

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.

like image 113
Andrei B. Avatar answered Nov 19 '22 17:11

Andrei B.


Do this:-

Right click on the file you want to exclude -> Team -> Add to svn:ignore

By the way, when you make a change to a file, it is SUPPOSED to say it is not synchronized with the repo. That's totally fine. If you exclude this file from the repo, then you will not have any versioning applied to this particular file, which kind of defeats the purpose of using a version control in the first place. In another word, if you accidentally delete this file or mess up this file, you cannot get a copy from the repo. Just make sure this is what you want before you do the above step.

like image 4
limc Avatar answered Nov 19 '22 18:11

limc