Friday, February 8, 2013

Organizing Properties Files

Organizing Properties Files

After a year of development our properties files have become very long and unorganized. It's time for cleanup. Here are the steps we took:

Sorting lines in properties files using text fx in notepad++









Aligned equals using textfx in notepad++

Combining multiple svn repositories into one


Combining multiple SVN repositories into one


For many years our department have been using 1 project = 1 repository layout which worked well until our entire company decided to consolidate our fragmented SVN servers into one central SVN server. They have provided use with one department repository. The problem is how to move our projects into one single repository.

Here is the original setup:



Here is the target setup:

Here are the steps we took:


Create dump files from the existing repositories

svnadmin dump c:\repositories\project1 > project1.dmp
svnadmin dump c:\repositories\project2 > project2.dmp





Load the dump files to new or existing repositories


svnadmin load --parent-dir project1 c:\repositories\department < project1.dmp
svnadmin load --parent-dir project2 c:\repositories\department < project2.dmp

When loading a dump file, disable the logic which validates property values.
svnadmin load --bypass-prop-validation --parent-dir project1 c:\repositories\department < project1.dmp
svnadmin load --bypass-prop-validation --parent-dir project2 c:\repositories\department < project2.dmp