Little problem with ant install task  
Author Message
publicis





PostPosted: 2004-8-2 20:32:00 Top

java-programmer, Little problem with ant install task Hi,

I found out that i can use ant for installing my web application.
great, I have copied some code from an example and added the taskdef's
to the top of my build.xml.
Then I copied the catalina-ant.jar into my java classpath.

But when I run it, I get :
"A class needed by class org.apache.catalina.ant.InstallTask cannot be
found: org/apache/tools/ant/Task"

I looked into the catalina-ant.jar and could not find a Task class
indeed, but then, where is it...?

Taskdef:
<taskdef name="install"
classname="org.apache.catalina.ant.InstallTask" />
<taskdef name="remove"
classname="org.apache.catalina.ant.RemoveTask" />
Target:
<target name="install" depends="war" description="Install servlet
on tomcat.kochan.de">
<install url="${tomcat.url}" username="${manager.username}"
password="${manager.password}" path="${app.path}"
war="jar:file:/${war.dir}/${project}.war!/" />
<sleep seconds="2"/>
</target>

Thanks for help!
Werner
 
antoine





PostPosted: 2004-8-3 1:56:00 Top

java-programmer >> Little problem with ant install task Hello Werner,

org.apache.tools.ant.Task is probably installed somewhere in tomcat.
Otherwise, you need to download ant from ant.apache.org.
The Task class is in the ant.jar file.

Hopes this helps.

If you have more problems, mail user at ant dot apache dot org.

Cheers,

Antoine


email***@***.com (Werner Butscher) wrote in message news:<email***@***.com>...



> Hi,
>
> I found out that i can use ant for installing my web application.
> great, I have copied some code from an example and added the taskdef's
> to the top of my build.xml.
> Then I copied the catalina-ant.jar into my java classpath.
>
> But when I run it, I get :
> "A class needed by class org.apache.catalina.ant.InstallTask cannot be
> found: org/apache/tools/ant/Task"
>
> I looked into the catalina-ant.jar and could not find a Task class
> indeed, but then, where is it...?
>