GWT, Eclipse Plugin how to rename project along with .gwt.xml file? Am getting error when try to do so

…衆ロ難τιáo~ 提交于 2019-11-30 07:30:17

To rename a project from "mytestproject" to "finalprojectname":

  1. In your .gwt.xml file, change
    rename-to="mytestproject" to
    rename-to="finalprojectname".

  2. In your .html file, change
    src="mytestproject/mytestproject.nocache.js" to
    src="finalprojectname/finalprojectname.nocache.js" (note the double replacement!)

  3. In your web.xml file, adjust paths like
    <url-pattern>/mytestproject/greet</url-pattern> to
    <url-pattern>/finalprojectname/greet</url-pattern>

Anything else (like renaming packages, or renaming the .gwt.xml file) is optional.

If you do choose to rename your .gwt.xml file afterwards, then it's necessary to delete the output folder (war/finalprojectname). In Eclipse, also delete your old Run Configuration, and then create a new one by using "Run As > Web Application".

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