不想一次又一次地建造 [英] dont want to build again and again

查看:31
本文介绍了不想一次又一次地建造的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络应用程序可以在位置说

I have a webapplication lets say at location

C:\Test\MyWeb

每次我进行一些更改时,我都必须通过 ant package 命令重建它.然后我将 MyWeb.war 文件复制到 apache 的 webapp 文件夹中.

Every time I make some change I have to rebuild it via ant package command. Then I copy the MyWeb.war file into apache's webapp folder.

我想在每次更改后避免这种构建和复制.如何绕过它?

I want to avoid this build and copy thing after every change. How to bypass it?

推荐答案

对于开发环境,服务器支持类似HOT Deployment.您可以部署 Web 应用程序的展开目录.

For development environment, server supports something like HOT Deployment. You can deploy an exploded directory of the web application.

对 Web 应用程序进行的以下更改将自动反映出来.有时,某些服务器可能会针对其中一些更改重新启动应用程序.但是,您不必为每次更改都打包和部署.

Making following changes to web application will automatically reflected. Sometimes some servers might restart application for some of these changes. But, you dont have to package and deploy for every change.

  • 添加新的 Jsp
  • 修改 web.xml
  • 修改 Jsp 或 Servlet

这篇关于不想一次又一次地建造的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆