title: Eclipse build.xml Ant Tab Has "Reference not Found" Error; Runs Fine
body: <p>In my build.xml, Eclipse indicates there is an error, but running the Ant task in Eclipse or from the command line works fine. The error is: <strong>"Reference cobertura.classpath not found."</strong> for the code:</p>
  
  <pre><code>    &lt;path id="cobertura.classpath"&gt;
          &lt;pathelement location="/usr/share/java/cobertura.jar" /&gt;
      &lt;/path&gt;
  
      &lt;taskdef resource="tasks.properties"&gt;
          &lt;classpath refid="cobertura.classpath" /&gt;
      &lt;/taskdef&gt;
  </code></pre>
  
  <p>If I change the code to following, the error goes away:</p>
  
  <pre><code>    &lt;taskdef resource="tasks.properties"&gt;
          &lt;classpath location="/usr/share/java/cobertura.jar" /&gt;
      &lt;/taskdef&gt;
  </code></pre>
  
  <p><strong>Why can't Eclipse correctly parse the first code snippit?</strong></p>