...
Run the following command from the project base directory to launch the Sonar analysis:
| Code Block |
|---|
ant sonar |
Security
Since Sonar 3.4, if you have set the security property 'sonar.forceAuthentication' to 'true', to run the analysis, you have to set the 'sonar.login' and 'sonar.password' properties to an existing user, either:
- directly on the command line by adding -Dsonar.login=myUser -Dsonar.password=myPassword
- or in the build.xml file
Sample Projects
To help you getting started, a simple project sample is available on github that can be browsed or downloaded: projects/languages/java/ant/java-ant-simple
...

