Ingredients:
- GWT on Eclipse
- Apache Tomcat (I have 5.5.26)
Also download and copy the "tomcat-gwt.xml" to the "test" Project directory.
Edit the tomcat-gwt.xml files and add your project specific settings.
<property name="tomcat.webapps" value="C:\apache-tomcat-5.5.26\webapps" />
<property name="project.name" value="test" />
Change the above settings to your specific settings.
Now add this builder to your project.
Right Click Project ("test") >> Properties >> Builders
Select import to add the XML.
Make sure the tasks are selected as displayed below.
The application is deployed to tomcat everytime you do a "CLEAN".
Contents of "tomcat-gwt.xml"
<project name="Tomcat-GWT" default="copy" basedir=".">
<property name="tomcat.webapps" value="C:\apache-tomcat-5.5.26\webapps" />
<property name="project.name" value="test" />
<property name="source.dir" value="${basedir}\war" />
<target name="copyx">
<echo>${source.dir}</echo>
<echo>${tomcat.webapps}</echo>
</target>
<target name="copy">
<mkdir dir="${tomcat.webapps}\${project.name}" />
<copy todir="${tomcat.webapps}\${project.name}">
<fileset dir="${source.dir}" includes="**/**" />
</copy>
</target>
</project>