ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allan Lewis" <>
Subject Accessing classes in a path from a custom task
Date Sat, 19 Feb 2011 15:17:20 GMT
I'm working on a custom ant task, and want to create a class based on
classname provided to the task.  I've made a path available to the task, but
can't quite figure out how to make those classes available to the task, so I
wind up getting a java.lang.ClassNotFoundException when trying to create the


In other words, given the following:


<path id="my.path">

<fileset dir="lib" includes="*.jar"/>



<path id="my.runtime.path">

<fileset dir="lib-runtime" includes="*.jar"/>



<typedef name="mytask" classname="com.mytask.MyTask"


< mytask classpathref="my.runtime.path" classname=""/>


What has to happen in order to get '' available to my task at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message