The content of the war
folder shouldn't be deleted, except for the specific folder that GWT writes into (war/myapp
, assuming you have a rename-to="myapp"
in your .gwt.xml
). If it does, then there's either a bug in the Google Plugin for Eclipse or a misconfiguration of your Eclipse project.
Re. the public
folder, it should sit just next to your .gwt.xml
file (and client
, server
and/or shared
subpackages)
Whether you'll use one or the other depends on how your module will be used:
- If it's a library and you want to ship the resource with it, then use
public
; and make sure you use sufficiently unique file/folder names so as to not cause conflicts. - If it's a library and you want to force people to provide their own resource, then don't use
public
(you could also make a distinct module just for the resources, that people will be free to use or not). - If it's an application, then pick whatever you want. I tend to prefer
war
.