With following structure, how can I make Eclipse build the WAR file correctly?
I need following folders to go into following output folders:
mail/src into mail/war/WEB-INF/classes
mail/www into mail/war/
I have tried setting the Output folders in Eclipse, but that doesn’t result in anything but Eclipse magically deleting all WEB-INF content without telling me!
I don’t typically create my GWT projects using the “Web Application Project” wizard as I don’t like having to remove all default servlets and classes. I usually create them as “Dynamic Web Projects” which will allow you to export as a WAR among other things.
This will create you just a basic web project you will next need to enable GWT on this project and add you base configurations.
At this point you have a Dynamic Web Project that is fully GWT enabled. To get the run setting set up properly just select “Run” from the menu and select “Run” again. Then select “Web Application” from the dialog box.