Does Google App Engine Java support Hot Deployment in Eclipse?

可紊 提交于 2019-12-10 13:05:54

问题


It doesn't seem to do this by default, which is pretty shocking to me given all the other stuff they've set up to make development easy. Is there a way to enable this? If not, anybody know why it isn't supported?


回答1:


This is an open feature request on the App Engine Issue Tracker. You should vote on it there.

FWIW, it does work with JSP as expected (they get invalidated and recompiled when you update them).




回答2:


There is JRebel that can help you with this http://englove.blogspot.com/2010/09/appengine-hot-deploy-on-mac.html

But using JRebel i had troubles with GWT in Development Mode.

BUt, there is a simplier way to do it. You can have hot deploy of your server clases if you debug your application in Eclipse.

Debug As -> Web Application

That's all! :)




回答3:


I realized that local server reloads when I modify and save the appengine-web.xml file, so i created a build.xml file with this instructions and runs from eclipse+ant, so I have a hot deploy

<?xml version="1.0"?>

<project default="main" basedir=".">
<property name="appengine" location="${basedir}/war/WEB-INF/appengine-web.xml" />


<target name="main">
    <echo message="REINICIANDO SERVIDOR LOCAL ${appengine}" />
    <touch file="${appengine}" />
</target>

</project>



回答4:


I work with App Engine 1.9.2, and it is already working not only for JSPs, but Servlets and Java code as well.

If your project is Maven-based, and you start your server with mvn appengine:devserver, after modifying some code, all you need to do is

mvn package

and refresh the page in your browser.



来源:https://stackoverflow.com/questions/1242712/does-google-app-engine-java-support-hot-deployment-in-eclipse

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