dont want to build again and again

耗尽温柔 提交于 2019-12-25 18:11:07

问题


I have a webapplication lets say at location

C:\Test\MyWeb

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?


回答1:


Try using an IDE like eclipse and start your application from within the IDE. The IDE should automatically recompile your files and in most case can do a hot replace of the code so you don't need to restart.




回答2:


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

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.

  • Adding new Jsp's
  • Modifying web.xml
  • Modifying Jsp's or Servlets


来源:https://stackoverflow.com/questions/11132817/dont-want-to-build-again-and-again

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!