Doug, do you mean something like this:
<taskdef name="theTask"
classname="com.company.project.rel.TaskClass"
classpath="/deploy/theJarContainingTheClass.jar" />
where the jar has a class called 'TaskClass' of package com.company.project.rel??
CB
-----Original Message-----
From: Doug Lochart [mailto:dlochart@capecomputing.com]
Sent: Thursday, October 02, 2003 2:07 PM
To: Ant Users List
Subject: Re: Greeting and task development question
You need to have the jar with tasks in the classpath. One way to do this is
put the jar in the $ANT_HOME\lib directory. If that is not desirable you
will need to spell out the classpath for your ant task in the <taskdef>
definition for your task so that ant can find it to run your task.
I hope this helps
Doug
Invisible to Telescopic Eye ... Infinity the start that would not die!
All who dare to cross her course
Are swallowed by a fearsome force
Through the void ... To be destroyed ?...
Or is there something more?
Atomized .. At the core .. ot through the Astral Door ..
To SOAR !!!
----- Original Message -----
From: "Bender, Christopher" <Christopher.Bender@tdsecurities.com>
To: <user@ant.apache.org>
Sent: Thursday, October 02, 2003 1:50 PM
Subject: Greeting and task development question
Hey everyone!
Im new to this list and am a little unsure of how things work but Im sure
Ill catch on soon enough.
My first question is regarding the writing of my own tasks. I have been
able to write a simple task and get it to run using the information found in
the ant manual. Unfortunate, I need to run more complex tasks that have
been zipped into a jar file. I have the manifest for the jar pointing to
the class I want to run, and now I am wondering if there is anyway I can get
ant to run this jar?
Thanks a lot,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|