Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: explained why the Ant task isn't Ant-y

...

You must have previously installed the SonarQube Ant Task and read Analyzing Source Code.

Usage

Successful The Ant task is a thin wrapper around the SonarQube Runner, which works by invoking the runner and passing to it all properties named following a sonar.* convention. This has the downside of not being very Ant-y, but the upside of providing instant availability of any new analysis parameter introduced by a new version of a plugin or of SonarQube itself. Therefore, successful use of the SonarQube Ant task requires strict adherence to the property names shown below.

You may also consult the list of analysis parameters for additional properties which will be honored in an Ant-based analysis.

Simple Project

Define a new sonar Ant target in your Ant build script:

...