This post originated from an RSS feed registered with Java Buzz
by Wolf Paulus.
Original Post: Subversion Server on Windows
Feed Title: Wolf's Web Journal
Feed URL: http://wolfpaulus.com/feed/
Feed Description: Journal - dedicated to excellence, and motivated by enthusiasm to trying new things
While I work mostly on my PowerBooks or G5 nowadays, I still keep a Windows box in my office at home. Some of the embedded stuff I'm working on runs only on a PC (cross compiler being just one example) and even J2ME related work needs to be done on a PC. J2ME Wireless Toolkit 2.1 and 2.2 are not available for OS X and probably never will be and like I have blogged here before, when considering the Mac, Michael Powers' mplayer is the only light in a dark world of J2ME on OS X.
So for the last couple of months the 2GHz Pentium-4 PC was sitting there doing what Windows is doing best, running the System Idle Process and since setting up a SubVersion server and gradually moving my projects from CVS to SubVersion is on my todo list for quite some time now, I finally found something useful for that box to do.
Step 2: Running the setup
I chose c:/subversion as the install directory.
Step 3: Create the Repository
Here I created c:/svnrepos to serve as the repository root - just make sure to use a local directory.
Executing c:/subversion/bin/svnadmin create c:/svnrepos registers the created directory as the repository root.
Step 4: Running SubVersion as a Service
Since I don't want to restart sub version every time the PC reboots, Magnus Norddahl's tool become quite useful. http://dark.clansoft.dk/~mbn/svnservice/SVNService.zip
To make things easy, you want to download the files right into subversion's bin directory, c:/subversion/bin in my case.
Executing c:/subversion/bin/SVNService -install -d -r c:/svnrepos will install subversion as a service and
the only remaining thing to do is to change the service's startup setting to Automatic.
Step 4: Install a good SubVersion Client
While there are subversion client plug-ins available for Eclipse as well as for IntelliJ-Idea, I still like to have an standalone client around. Fortunately, German fellow German, Thomas Singer is writing a new SubVersion client, building on his great success he has with SmartCVS. Check it out.
Step 5: Access
Registering the root directory will make the whole subtree read-only. Make sure that the user running the server (local SYSTEM ?) can access the sub tree. Moreover, you may want to edit the /repos/conf/svnserv.conf file. If you do, remember to enable the [general] tag as well.