title: How to add sonar in the antbuildfile in Eclipse
body: <p>I dont understand XML,
  But Looking the Tutorial, i created the ant builfile -> projecBuilder.xml in the web application Project in Eclipse (GWT)
  With help of projectBuilder.xml i create a jar file for all the java files in client, shared , server.</p>
  
  <p>Now i want to add Sonar as a target in projectbuilder.xml.</p>
  
  <p>I have dowloaded sonar 2.12,
  sonar ant task. both are in in Drive D:/</p>
  
  <p>What i have done :</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p>
      </p>
  
  <pre><code>&lt;target name="create_jars" depends='create_jars_client,create_jars_server,
      create_jars_shared,sonar' /&gt; 
  
          &lt;!--Client--&gt;
      &lt;target name="create_jars_client"&gt;
          &lt;echo message = 'Remove Existing Jars'/&gt;
          &lt;delete file="com/example/TryAnt/Client/TryAnt.jar" /&gt;
                      &lt;echo message='Create new jars' /&gt;
          &lt;jar basedir='${classes}' jarfile="com/example/TryAnt/Client/TryAnt.jar"
                  includes ='WEB-INF\classes\com\example\TryAnt\client\TryAnt.class'/&gt;
  
  
    &lt;/target&gt;
     &lt;!--... Similar more code for creating jar--&gt;
  </code></pre>
  
  <p><a href="http://docs.codehaus.org/display/SONAR/Analyse+with+Ant+Task" rel="nofollow">a link</a></p>
  
  <p>i used above link link to solve further .</p>
  
  <p>i copied paste the code but it show me error.
  Please tell me what are the things to be changed.</p>
  
  <p>please any one can explain me how to analyse code in sonar by using ant build file  in a very simple language.</p>