Thursday, 12 June 2014

Java EE Web App (part #3)

Versioning Tool #2 (SVN)

Since the complexity needed to understand and operate Git is too high we here try to understand SVN which serves similar purpose as Git. It is used by many heavy weight Tech Companies across the globe.

Assuming there is a VisualSVN server running at developer "x" side which contains the latest up-to-date copy of our project "foobar"

steps needed to copy the latest "foobar" project from developer "x" machine to your machine.

Steps
  1. Download & Install TortiseSVN
  2. Create an empty directory on your desktop named "mynewproj"
  3. Browse in that directory mynewproj and do right click and select TortiseSVN --> Create repository here
  4. It will prompt a dialog box in that dialog box click on "create folder structure" button and then "ok" button
  5. Then again right click and select SVNCheckout, which will bring a dialog box in front of you
  6. In the field named "URL Of The Repository" enter URL which you get from developer "x" which has VisualSVN Server up and running, who also has the fully up-to-date project "foobar" (eg. URL will be like https://IP:port/svn/projectname) after you enter "ok" button a dialog box will pop-up which will ask for username and password, make sure you have one
  7. Then in the "Checkout" text-field select the directory "mynewproj"
  8. Then click on "ok" button, It will bring the latest copy of project "foobar" on your machine
  9. Open Netbeans 8.0, open project from the directory "mynewproj" (in our case it was "foobar")
  10. Perform some modifications ...blah blah...
  11. Now come back again to directory "mynewproj" select the project "foobar" do right click and select "SVN Commit...." it will again ask for username and password, make sure your developer "x" has provided you the same
  12. Once it is done, developer "x" on his machine will have to select the project "foobar" from Netbeans and perform step shown in step 13
  13. Right click on "foobar" project from Netbeans and select Subversion --> Update --> Update with Dependencies
viola !! you have just learned 50% of SVN....congo !!!

For learning how to setup and configure the SVN Server wait for Java EE Web App (part #4)