RSS

Daily Archives: March 14, 2013

SVN Vs ClearCase Vs PVCS

Hi folks,

Here is a elaborated summary on three popular source code version control systems. Below points are completely based on my personal experience with the products i worked so far.

I have worked more than 2 years with SVN and Clearcase but short period on PVCS version control systems.

1. SVN (Sub-version) is a an open source version control system meant as a replacement for the popular CVS and user friendly. PVCS (Polytron Version Control System) and CC(ClearCase) is a commercial product

Stability: I found the SVN to be more stable and reliable than PVCS and also Clearcase is also more stability like SVN and have good forum support as well.

2. Installation and Setup: SVN is very easy to set up and install. Clearcase and PVCS is somehow more involved depending on the type and components being installed.

3. Client: All products offer command line tools that are similar in their capabilities. SVN has an ingenious Windows client called TortoiseSVN that completely integrates into Windows Explorer giving you a “right” click access and control to the most common versioning operations. SVN also has Web UI, as well as WebDAV support. PVCS provides a web access as well. It is rich and reasonably designed but I felt that SVN one is already “rich enough” for the price where as Windows PVCS GUI feels limited, and looks it is little bit slow. Clearcase also provides the GUI tool called ClearCase Remote Client, using we can perform the operations like Hijack, Undo-hijack, Checkout, CheckIn, Version History etc.

4. Performance: PVCS was not the fastest piece of software. SVN contrary has a very solid performance. It is usually very responsive for as long as your network is reasonably fast. Furthermore, SVN has a very intelligent optimization model making the client operations very fast. Clearcase is also very good performance and stability like SVN.

5. Team version control operations: PVCS works in a pragmatic locking mode. SVN and Clearcase supports file locking as well as CVS-like optimistic development style.

6. Eclipse plugin: SVN has a very nice plugin for eclipse and I used it. It will save lot of my development time. I have never used plug-ins for PVCS and Clearcase instead used GUI tools.

In Summary, I would recommend SVN for open source and Clearcase for commercial purpose use. It is easy to work with SVN when compare to PVCS and Clearcase.

For beginners, SVN is more user friendly and easy attractive when compare to Clearcase and PVCS version control systems, because of integrated with Windows Explorer.

Initial days,i worked with VSS (Visual SourceSafe) version control system also but i felt its very difficult working with this product as a fresher. I have attracted by SVN and always love to work with this product 🙂

Below is the URL which give the list of OpenSource version control systems in our software world.

http://producingoss.com/en/vc-systems.html

Happy Learning!!.

Get glued to know more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on March 14, 2013 in Uncategorized

 

Sonar setup

Hi folks,

Here is the elaborated post how to do the Sonar setup for your web application.

Just follow the below steps to setup Sonar code review tool for your application.

Step-1 :

1. In Eclipse, Go to Help -> Install New Software. This should display the “Install” dialog.
2. Paste the below URL into the field named “Work with:” and press Enter.
URL: http://dist.sonar-ide.codehaus.org/eclipse/

3. Choose the component listed under Sonar: “Sonar Integration for Eclipse (Required)”.
4. Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
5. Click Finish to begin the installation process. Eclipse will then downloads and install the necessary components.
6. Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. It’s strongly recommended that you restart eclipse IDE.
7. In Eclipse , Go to Windows -> Preferences -> Sonar server
8. Remove http://nemo.sonarsource.org. and http://localhost:9000 as well.

Step-2:

1. Create a new folder (sonar setup) in your local machine, download the below 2 softwares from the google.
1. sonar 3.0
2. apache-maven-3.0.4-bin.zip

2 Modify the existing code in setting.xml file(location : apache-maven-3.0.4\conf\setting.xml) with your project information.
3. Create JAVA_HOME and MAVEN_HOME variable in users variable Section Under Environment Variables (User Variables and also in System variables)
4. Create pom.xml file and place in the below location : apache-maven-2.2.1\bin

sample pom.xml
<project xmlns=”http://maven.apache.org/POM/4.0.0&#8243;
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”&gt;
<modelVersion>4.0.0</modelVersion>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-check-api</artifactId>
<name>your project name</name>
<version>1.0</version>
<build>
<sourceDirectory>source code path (path for java classes directory)</sourceDirectory>
<outputDirectory>path for classes directory</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<sonar.dynamicAnalysis>false</sonar.dynamicAnalysis>
</properties>
</project>

Note: In the above configuration, modify sourceDirectory and outputDirectory value path to your local machine path.

Step-3

1. Start Sonar Server by clicking on StartSonar.bat command (location:sonar-3.0\bin\windows-x86-32\StartSonar.bat)
2. Do the Clean build using the below maven commands:
In Command Prompt, go to the location: apache-maven-3.0.4\bin and start executing the below commands, make sure that below 2 commands will execute with out any errors.
1. mvn clean install sonar:sonar
2. mvn sonar:sonar
3. Use the below URL to see the dashboard of your application
Local URL: http://localhost:9000/

Reference URLs:

1. http://docs.codehaus.org/display/SONAR/Install+Sonar
2. http://sonarpvwin:9000/
3. http://docs.codehaus.org/display/SONAR/Configuring+Sonar+in+Eclipse
4. http://docs.codehaus.org/display/SONAR/Sonar+Plugin+Library/

Happy Learning!!.

Get glued to know more updates.

Have a nice day 🙂

 
1 Comment

Posted by on March 14, 2013 in Uncategorized

 

ANT – Build tool

Hi folks,

This post will helps,

— Beginners to learn about one of the best market build tool – ANT.(Another Near Tool)
— For experience folks, it helps for brushup the concept once.

http://www.exubero.com/ant/antintro-s5.html

Hope this URL will helps you.

Happy Learning!.

Get glued to know more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on March 14, 2013 in Uncategorized