This example demonstrates how to analyze a simple project with Ant.
- SonarQube 5.6+
- SonarQube Scanner for Ant 2.5+
- Ant 1.7.1 or higher
-
Set the path to the SonarQube Ant Task in the build.xml file
-
Set the URL of your SonarQube instance in the property 'sonar.host.url'
-
Run the following command:
ant all