tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Eaves <...@eaves.org>
Subject Re: managerapp and ant
Date Fri, 11 Apr 2003 01:16:24 GMT
Hi all,

Make sure your build.xml has defined the ant deploy tasks.

 From memory the default build.xml does not have these tasks
defined.

Include lines such as these to make it work....

------
   <taskdef name="deploy"  classname="org.apache.catalina.ant.DeployTask"/>
   <taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"/>

   <target name="deploy" description="Deploy Web application" >
       <deploy
           url="${manager.url}"
           username="${manager.username}"
           password="${manager.password}"
           path="${app.path}"
           war="file:///${dist.home}/${app.name}-${app.version}.war" />
   </target>

   <target name="undeploy" description="Undeploy Web application" >
       <undeploy
           url="${manager.url}"
           username="${manager.username}"
           password="${manager.password}"
           path="${app.path}" />
   </target>
-----

Cheers,
	-- jon


Roberts, Eric wrote:
> Hi,
> 
> Have you set ANT_HOME environment variable?
> 
> Eric
> 
> -----Original Message-----
> From: Jacek Bator [mailto:jbator@man.poznan.pl]
> Sent: 10 April 2003 14:11
> To: tomcat-user@jakarta.apache.org
> Subject: managerapp and ant
> 
> 
> Hello,
> 
> I've tried to deploy webapp with ant and I've failed.
> 
> I've used example build.xml from:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
> 
> I've copied catalina-ant.jar to ant\lib and when I've tied to use ant
> it displays error:
> file:D:/...../src/build.xml:16: taskdef class 
> org.apache.catalina.ant.DeployTask cannot be found
> 
> I've tried ant 1.4.1 and 1.5.3, I've added catalina-ant.jar to classpath 
> and nothing .... can someone help me??? Do I've made any error???
> 
> My environment Windows Me, tomcat 4.1.23, jdk.1.4.1_02, ant 1.4.1 and 1.5.3
> 
> Regards
> 
> Jacek
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

-- 
Jon Eaves <jon@eaves.org>
http://www.eaves.org/jon


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message