Stackoverflow

Saturday, May 23, 2009

Configuring svn server and creating Repository

SVN server setup:
• Install SVN 1.4.6 setup in to your local drive. I have installed in the following path “G:\SourceControl\Subversion”.
• Add bin path to environment variable PATH.
• PATH=“G:\SourceControl\Subversion\bin”.
























  • And add a system variable SVN_EDITOR.
  • SVN_EDITOR = “C:\Windows\notepad.exe”



  • In command prompt
  • Use svnadmin command to create a repository
svnadmin create “G:\SourceControl\svn\repodb”


Note: Before issuing the above command make sure that u create the respective folders


Use the svnserve command to start the svn service.



  • Uncomment the following lines in “G:\SourceControl\svn\repodb\conf\svnserv.conf” file and save it
anon-access = read
auth-access = write
password-db = passwd
  • Uncomment the following lines in “G:\SourceControl\svn\repodb\conf\passwd” file and save the file. We can also include our own user and password credentials
harry = harryssecret
sally = sallyssecret
  • Create a project by opening a second command window and entering this command
svn mkdir svn://localhost/cards

  • Comment in the Notepad that launches

  • Save and Exit the Notepad.
  • In the command window, give the windows password and either of the two login details.

  • If you have installed Tortoise SVN client in your machine, then right click on any folder to perform a checkout operation. Then all the files in the repository will be available in the folder which you have checked out.


Creating SVN Connection in JDeveloper 11G

In JDeveloper 11G, click on the versioning tag and select Subversion -->Check out
Give the svn location : svn://localhost/cards
Connection : sampleconncetion
Username: harry
Password: harryssecret
And test the connection.