-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Sonar Code Quality Testing Essentials
By :

Apache Ant, ant
in the command line, is one of the oldest Java build tools around. Chances are you might be using it already or have switched to a more modern system such as Maven or Gradle. To perform a Sonar analysis, you need to create a new Sonar Ant Task and define the configuration inside an ant
script file. Then, add a new Ant target referencing the sonar configured task inside your project's build script and provide path information for source, binaries, and project libraries.
First, let's go through the installation process.
In order to use Ant in conjunction with Sonar, the following requirements must be met:
Ant 1.7.1 or higher
Java 1.5 or higher
Sonar 2.8 or higher
Download the latest Ant release from http://ant.apache.org/bindownload.cgi and uncompress it into a directory. On Linux, add the ANT_HOME
environment variable to your PATH by editing .bashrc
(or .bash_profile)
accordingly. On Windows, add the variable by right-clicking on My Computer |...
Change the font size
Change margin width
Change background colour