title: Why are my libraries not being imported into Sonar when using the Ant task?
body: <p>We are evaluating Sonar and I've set up an Ant task to import my project data into Sonar using the instructions <a href="http://docs.codehaus.org/display/SONAR/Analyse+with+ANT" rel="nofollow noreferrer">here</a> but my libraries aren't appearing in the libraries view.</p>
  
  <p>Apart from this it is working as all the other information is there.</p>
  
  <p>Maybe I've misunderstood what the libraries element is for in the Ant task? Please can someone tell me what I'm missing?</p>
  
  <p><img src="https://i.stack.imgur.com/5TlpL.png" alt="Screen shot of Sonar showing empty libraries view"></p>
  
  <p>From my build file:</p>
  
  <pre><code>    &lt;target name="sonar"&gt;
      &lt;sonar:sonar workDir="sonartemp" key="org.example:example" version="0.1-SNAPSHOT" xmlns:sonar="antlib:org.sonar.ant"&gt;
  
          &lt;!-- source directories (required) --&gt;
          &lt;sources&gt;
              &lt;path location="src/common/src" /&gt;
              &lt;path location="src/commonWidgets/src" /&gt;
              &lt;path location="src/compositionWidget/src" /&gt;
              &lt;path location="src/nativeLib/src" /&gt;
              &lt;path location="src/services/src" /&gt;
          &lt;/sources&gt;
  
          &lt;!-- list of properties (optional) --&gt;
          &lt;property key="sonar.projectName" value="Test RPS Composition Import" /&gt;
          &lt;property key="sonar.dynamicAnalysis" value="true" /&gt;
  
              &lt;!-- test source directories (optional) --&gt;
              &lt;tests&gt;
              &lt;path location="src/common/test" /&gt;
              &lt;path location="src/commonWidgets/test" /&gt;
              &lt;path location="src/compositionWidget/test" /&gt;
              &lt;path location="src/services/test" /&gt;
              &lt;/tests&gt;
  
          &lt;!-- binaries directories, which contain for example the compiled Java bytecode (optional) --&gt;
          &lt;binaries&gt;
              &lt;path location="src/common/build" /&gt;
              &lt;path location="src/commonWidgets/build" /&gt;
              &lt;path location="src/compositionWidget/build" /&gt;
              &lt;path location="src/services/build" /&gt;
          &lt;/binaries&gt;
  
          &lt;!-- path to libraries (optional). These libraries are for example used by the Java Findbugs plugin --&gt;
          &lt;libraries&gt;
              &lt;path location="src/common/lib/**/" /&gt;
              &lt;path location="src/commonWidgets/lib/**/" /&gt;
              &lt;path location="src/compositionWidget/lib/**/" /&gt;
              &lt;path location="src/services/lib/" /&gt;
          &lt;/libraries&gt;
      &lt;/sonar:sonar&gt;
  &lt;/target&gt;
  </code></pre>