Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
taskdef classpath oddity

taskdef classpath oddity

2003-03-31       - By john guthrie
Reply:     1     2     3  

i am running a task i created. the target looks something like:

<target name="doit">
  <taskdef name="doit" classname="some.package.DoitTask"
classpathref="task.classpath"/>
  <doit/>
</target>

the odd thing i am seeing is that when my task.classpath references a
jarfile that contains, among other things some/package/DoitTask.class i get
a "taskdef class some.package.DoitTask cannot be found", but when i point my
task.classpath to a directory that contains some/package/DoitTask.class it
works just fine. i've stuck a <pathconvert> and an <echo> before the
<taskdef> to make sure my jarfile is listed, and it is, so i am baffled as
to why ant cannot find the task (i sure can!)

any and all advice welcome. thanks

john




©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.