Bug#565403: ant-contrib: doc refers to missing file antlib.xml

Yann Dirson ydirson at linagora.com
Fri Jan 15 13:50:59 UTC 2010


More info:

I tried to use antlib.xml by copying it and the jar to my project, but
adding the suggested block below:

  <taskdef resource=".../antlib.xml">
    <classpath>
      <pathelement location=".../ant-contrib.jar"/>
    </classpath>
  </taskdef>

... results in:

Buildfile: build.xml
  [taskdef] Could not load definitions from resource .../antlib.xml. It
could not be found.

This happens both with absolute and relative paths to antlib.

OTOH, I could make it work by copying the parts of its contents I'm
interested in, eg:

  <taskdef
     name="for"
     classname="net.sf.antcontrib.logic.ForTask"
     onerror="ignore">
    <classpath>
      <pathelement location=".../ant-contrib.jar"/>
    </classpath>
  </taskdef>


I can't really see what I'm doing wrong, maybe I just need some sleep, but
that could just be an inaccurate doc, or a plain ant bug.






More information about the pkg-java-maintainers mailing list