|
This feature is available since Sonar 2.6. |
Prerequisites
- Java 1.5 or higher
- Sonar 2.6 or higher. The server must be up when analyzing projects.
Download
- Latest release (version 1.1, July 11 2011)
- Version 1.0 (Feb 18 2011)
Installation
- Uncompress the downloaded file into a directory named $SONAR_RUNNER_HOME in the next steps.
- Update global settings (database connection, server URL) by editing the file $SONAR_RUNNER_HOME/conf/sonar-runner.properties
- You can check the basic installation with opening a new shell and typing 'sonar-runner -h'. You should get a message like this :
Usage
For each project create a file sonar-project.properties in the base directory :
For advanced features such as reusing existing unit test reports, you can set advanced parameters in this file or through command-line parameters.
You can then execute 'sonar-runner' from project base directory to launch a Sonar analysis.
|
If you get an java.lang.OutOfMemoryError: Java heap space and until SONARPLUGINS-1004 is fixed, you need to edit bin/sonar-runner(.bat) and add -Xmx1024m to the command line. |
|
Due to SONARPLUGINS-1024, not possible to set "." as a source directory with Sonar 2.6. |

