You may want to take a look at similar questions (anwering similar questions for git and svn) : Git - Committing Machine Specific Configuration Files and How to version control config files pragmatically?.
Please note, they do not answer your question directly, but provide some best practices for circumventing the issue.
In a current project, we decided in favor of having templates under version control (like template.properties
) and modifying them for local use like (local.properties
) and ignoring the modified files. This is the more robust approach.
In another project we took a different approach, having a separate file per developer (
{activeDirectoryLogin}.properties}
). The appropriate file is selected automatically based on the current user. This approach has its disadvantages, which we could luckily neglect, because we had a rather small and stable team of 5 co-located developers for the duration of the project. The upside is, that the developers are aware of other's preferences and are can quickly reproduce any possible issues. Plus, the settings can be easily evaluated on different systems.