Hi David,

Yes it is in my classpath but I decided to try your suggestion anyway. It
didn't make any difference.  But what I realized is that it's looking for a
class that should be in ant.jar and so apparently, Eclipse does not include
a complete version of Ant even though it uses Ant.  I downloaded and
installed a full copy and everything now works as advertised.

The lesson?  Live and learn.

Thanks,
Rob


On 3/19/10 9:43 AM, "David Corlette" <dcorle...@novell.com> wrote:

> Is the xmltask JAR in your classpath?
> 
> I did this as follows:
> 
> <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"
> classpath="${buildtools}/xmltask.jar"/>
> 
>>>> On 18.03.2010 at 17:34, in message <c7c7ea78.3c5a8%rtan...@linfield.edu>,
>>>> Rob
> Tanner <rtan...@linfield.edu> wrote:
>> Hi,
>> 
>> I*m just starting to experiment with xmltask to see if it will solve a
>> problem for me.  At this point all I*ve done is add the taskdef to my
>> build.xml file in Eclipse and make sure that Ant knows where to find it.
>> 
>>     <taskdef name="xmltask"
>> classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
>> 
>> That*s all I*ve done at this point and then I attempted to run the script.
>> Right now all it*s doing is copying a directory and I wanted to make sure it
>> continued to do so error free.  Instead I got this error:
>> 
>> Build.xml:12: taskdef A class needed by class
>> com.oopsconsultancy.xmltask.ant.XmlTask cannot be found:
>> org/apache/tools/ant/Task
> 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to