且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apache Ant的部署如何.war文件到Tomcat

更新时间:2023-11-17 23:27:04

Tomcat的具有在您将任何战争的文件会自动解压缩并部署了一个自动部署文件夹。你的Ant文件是通过调用在tomcat-Manager Web应用程序的特殊URL(这是ppackaged到Tomcat $ P $)复制war文件到这个目录。

Tomcat has an autodeploy folder in which any war file that you place will be automatically unpacked and deployed. Your ant file is simply copying the war file into this directory by calling a special URL in the tomcat-manager web application (which is prepackaged into the tomcat).

这一切这一点是由tomcat的核心自动处理,只是如果你复制war文件到手动webapps目录。

From this point on everything is handled by the tomcat core automatically, just if you copied the war file into the webapps directory manually.

您可以有蚂蚁做很多与Tomcat的一些特定的Ant任务。特别是如果Tomcat服务器不在本地机器上。 有关详细信息,请参阅的这个环节。

You can have ant do a lot more with some specific ant tasks for tomcat. Especially if the Tomcat server is not on the local machine. See this link for details.