This post explains steps to install and use Sonar plugin for RAD 7.5.5/WCS v7. For installing Sonar and Sonar Runner please refer https://sites.google.com/site/selvamanoharan/sonar-setup
You must install Sonar and analyze a project using Sonar Runner or other options available in order to use the plugin
The latest version of Sonar supports only from RAD 8 onwards. But to install Sonar for RAD 7.5.5.5 we will use the Sonar plugin version 0.2.0 from the sonar plugin archive. This the last version compatible to RAD 7.5.5.5
To download the 0.2.0 version, go to http://dist.sonar-ide.codehaus.org/eclipse-archives/0.2.0/. Make a local directory and download all the files present in the above link.
Now open your RAD and go to Software Updates->Available Software tab and click on Add Site button. You will see the below window
Now click the ‘Local’ button and browse to the downloaded files directory and click ok.
You will see the below screen
Select the checkbox against Sonar and click ‘Install’.
Click Finish in the above screen shot. Installation will begin. Once the installation is complete, the system will ask to restart RAD. Please click ‘Yes’
Once RAD restarts go to Window->Preference. In the Sonar section you will see that the default localhost Sonar server details would have been populated automatically
If you have Sonar server on a remote machine you can configure that by adding a new server
In order to test the plugin, I will be using the ‘Aurora-Tests-Wte’ java project which comes with the Storefront Test Automation Engine which I have explained in my earlier posts. I ran the project against Sonar before installing the Sonar Plugin.
You can associate a project to Sonar by 2 methods.
One method is to open the build properties of the project and go to Sonar section
Else, in the Project Explorer, right click the project and go to Sonar Menu and click ’Associate Project with Sonar’ option
Once associated you can see the Sonar output in the Tasks view and also as Task notes in the java file editor itself