This example demonstrates how to analyze a simple Apache Ant project with SonarScanner CLI. SonarScanner for Ant is deprecated on SonarCloud and as of SonarQube 9.9, therefore this is the current way of scanning an Ant project. Please see Moving from SonarScanner for Ant to SonarScanner documentation for how to migrate to the SonarScanner.
- SonarScanner CLI
- Ant 1.10.0 or higher
- Compile the project:
ant all
- Run SonarScanner CLI.