title: Sonar-Scanner for Ant issue
body: <p>I am currently working changing an build.xml file that was supported by sonar-ant-task 1.4 to build.xml for SonarQube Scanner for Ant 2.5 facing issues related to nomenclature. SonarQube 5.6.3.
      We created a custom plugin for salesforce language custom plugin for older version upgrading it to the latest one. Build.xml is as below  </p>
  
  <p>`
            </p>
  
  <pre><code>      &lt;!-- Define the Sonar task --&gt;
        &lt;taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"&gt;
          &lt;classpath path="sonar-ant-task-2.5.jar" /&gt;
        &lt;/taskdef&gt;
  
        &lt;!-- define the force versions task --&gt;
          &lt;taskdef name='scm' classname='com.villagechief.codescan.versions.ant.ScmCommitterTask'&gt;
          &lt;classpath path="force-versions-0.2-SNAPSHOT.jar" /&gt;
        &lt;/taskdef&gt;
  
        &lt;!-- Define the Salesforce task --&gt;
        &lt;taskdef uri="salesforce" resource="com/salesforce/antlib.xml"&gt;
          &lt;classpath path="ant-salesforce.jar" /&gt;
        &lt;/taskdef&gt;
         &lt;!-- Add the target --&gt;
        &lt;target name="sonar"&gt;
        &lt;!--java srcdir="sonar-project-template\src" target="sonar-project-template\src" bootclasspath="C:\Program Files\Java\jdk1.8.0_145\jre\lib\rt.jar"/--&gt;
           &lt;property name="sonar.host.url" value="Link to another server/" /&gt;
  
          &lt;property Name="sonar.login" value="****"/&gt;
          &lt;property Name="sonar.password" value="****"/&gt;
  
          &lt;!-- db properties --&gt;
          &lt;property name="sonar.jdbc.url" value="jdbc:sqlserver://&lt;serverip&gt;;databaseName=sonar" /&gt;
          &lt;property name="sonar.jdbc.username" value="****" /&gt;
          &lt;property name="sonar.jdbc.password" value="****" /&gt;
  
  
          &lt;!-- location properties --&gt;
          &lt;property name="sonar.sources" value="${user.dir}/src" /&gt;
          &lt;property name="sonar.binaries" value="${user.dir}/bin" /&gt;
          &lt;property name="sonar.tests" value="${user.dir}/tests" /&gt;
          &lt;property name="sonar.libraries" value="${user.dir}/" /&gt;
  
          &lt;!-- define if not already defined properties --&gt;
          &lt;property name="sonar.language" value="sf" /&gt;
          &lt;property name="salesforce.url" value="https://www.salesforce.com" /&gt;
          &lt;property name="sonar.projectVersion" value="1.0-SNAPSHOT" /&gt;
          &lt;sonar:sonar key="${sonar.projectKey}" version="${sonar.projectVersion}" xmlns:sonar="antlib:org.sonar.ant"/&gt;
        &lt;/target&gt;
  
        &lt;target name="commit"&gt;
          &lt;scm username="${salesforce.username}" password="${salesforce.password}" serverurl="${salesforce.url}" repository="${scm}" &gt;
                  &lt;fileset dir="${user.dir}/src"&gt;
                      &lt;include name="**/*"/&gt;
                  &lt;/fileset&gt;
              &lt;/scm&gt;
        &lt;/target&gt;
  
        &lt;target name="deletesrc"&gt;
          &lt;delete dir="${user.dir}/src"&gt;
              &lt;include name="**/*"/&gt;
              &lt;exclude name="package.xml"/&gt;
          &lt;/delete&gt;
  
        &lt;/target&gt;
        &lt;target name="download"&gt;
          &lt;!-- Retrieve the contents listed in the file codepkg/package.xml into the codepkg directory --&gt;
          &lt;sf:retrieve username="${salesforce.username}" password="${salesforce.password}" serverurl="${salesforce.url}" 
            retrieveTarget="src" unpackaged="src/package.xml"/&gt;
          &lt;!--   
          &lt;sf:retrieve username="${salesforce.username}" password="${salesforce.password}" serverurl="${salesforce.url}" 
            retrieveTarget="src" packageNames=""/&gt;--&gt;
        &lt;/target&gt;
  
        &lt;target name="deploy"&gt;
          &lt;!-- Retrieve the contents listed in the file codepkg/package.xml into the codepkg directory --&gt;
          &lt;sf:deploy username="${salesforce.username}" password="${salesforce.password}" serverurl="${salesforce.url}" 
            deployroot="src"/&gt;
        &lt;/target&gt;
  
        &lt;target name="commitall"&gt;
          &lt;exec executable="git" dir="${user.dir}"&gt;
            &lt;arg value="add"/&gt;
            &lt;arg value="-A"/&gt;
          &lt;/exec&gt;
          &lt;exec executable="git" dir="${user.dir}"&gt;
            &lt;arg value="commit"/&gt;
            &lt;arg value="-a"/&gt;
            &lt;arg value="-m"/&gt;
            &lt;arg value="&amp;lt;automcommit: all&amp;gt;"/&gt;
          &lt;/exec&gt;
        &lt;/target&gt;
        &lt;!-- &lt;target name="analyse" depends="deletesrc, download, commit, commitall, sonar" /&gt; --&gt;
        &lt;!--target name="analyse" depends="deletesrc, download, sonar" /--&gt;
      &lt;target name="analyse" depends=" download, sonar" /&gt;
      &lt;/project&gt;
      `
  </code></pre>
  
  <p>Please let me know where am i getting it wrong. The issue is when I run the command : #!/bin/sh ant -f ../build.xml analyse
  The analyse is not being sent to the server it shows to be executing properly in the logs. So i think there is something wrong with the build.xml. So I need help.</p>
  
  <p>This is the log that i get after running the command : ant -f build.xml analyse</p>
  
  <pre><code>Buildfile: C:\runner\runner\antbuild.xml
  
  deletesrc:
  
  download:
  [sf:retrieve] Request for a retrieve submitted successfully.
  [sf:retrieve] Request Id for the current retrieve task: 04s90000003elivAAA
  [sf:retrieve] Waiting for server to finish processing the request...
  [sf:retrieve] Request Status: Completed
  [sf:retrieve] Finished request 04s90000003elivAAA successfully.
  
  sonar:
  
  analyse:
  
  BUILD SUCCESSFUL
  Total time: 15 seconds
  </code></pre>
  
  <p>Thanks in Advance!</p>