How to create a new GWT and GAE project with modules using google eclipse plugin in Java? I tried using make a new web applications from the eclipse, but it just create me a GWT and GAE project without modules.
Thanks.
How to create a new GWT and GAE project with modules using google eclipse plugin in Java? I tried using make a new web applications from the eclipse, but it just create me a GWT and GAE project without modules.
Thanks.
You'll probably want to first create a WTP project using GPE, because to use modules you'll need to create an EAR project. This is described here:
https://developers.google.com/appengine/docs/java/webtoolsplatform
You'll create modules, which will each be a dynamic web project. Your GWT app will be one of those. And follow the instructions for modules here:
https://developers.google.com/appengine/docs/java/modules/
Note that there will be two Google related items when you right-click your project: Google and Google App Engine WTP. Commands related to app engine in the Google menu don't seem to work. Instead use the app engine related commands in the Google App Engine WTP menu.
Apparently, it is an open feature request to do this programmatically: https://code.google.com/p/google-web-toolkit/issues/detail?id=3584 and https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=121
There is a proposed workaround:
GWT Compile and copy the /war/ output into a standard Dynamic Web Project.
I have tested this workaround and it works. Simply copy the Google Web Applications Project's "war" directory into the web content directory (default: "WebContent") of a stub Dynamic Web Project.
For the local AppEngine dev server for Dynamic Web Projects and EAR projects it is important that project names do not contain a space. Moreover, this also applies to the AppEngine agent file path, see Error opening zip file or JAR manifest missing : C:\Program.
How to create a new GWT and GAE project with modules using google eclipse plugin in Java?
Do check in each option to create project with sample code.
© 2022 - 2024 — McMap. All rights reserved.