Deployment in Tomcat using ANT Script


Open build.xml, and add the below Task def and Ant Task.

[taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/]

[deploy url=”${manager.url}”
war=”file:/${dist.dir}/${name}.war” /]

[target name=”deploy” depends=”package-web” if=”tomcat.home”
description=”unwar into the servlet container’s deployment directory”]

[unwar src=”${webapp.dist}/${webapp.war}”


1 thought on “Deployment in Tomcat using ANT Script

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.