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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With