title: Finding source paths using FindBugs ant task
body: <p>I'm trying to get the FindBugs ant task to include source info in the generated report. </p>
  
  <pre><code>&lt;findbugs home="${findbugs.home}" output="xml" outputFile="${basedir}/findbugs/findbugs-${package.basename}.xml" excludeFilter="${basedir}/findbugsExclude.xml" jvmargs="-Xmx1048m"&gt;
      &lt;sourcePath path="${package.srcdir}" /&gt;
  &lt;class location="${package}" /&gt;
  &lt;auxClasspath&gt;
      &lt;path refid="findbugs.auxinput" /&gt;
      &lt;/auxClasspath&gt;
  &lt;/findbugs&gt;
  </code></pre>
  
  <p>The value of the ${package.srcdir} attribute is correct as far as I can see; it points to the root of the source tree such that ${package.srcdir}/com/mydomain/MyClass.java is the path of the source file.</p>
  
  <p>The generated reports contains a <code>&lt;SrcDir&gt;</code> element which matches the source path given to the ant task, so apparently the <code>&lt;sourcePath&gt;</code> element is handled by the findbugs task. Despite this, the package stats in the XML reports only contains <code>sourceFile="&amp;lt;Unknown&amp;gt;"</code>.</p>
  
  <p>Am I missing something obvious?</p>