Updates DynaTable2 build file as per the recent updates to support a WAR
structure. 

Patch by: amitmanjhi
Review by: scottb 



git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4005 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/eclipse/samples/DynaTable2/build.xml b/eclipse/samples/DynaTable2/build.xml
index c003fe4..b49d710 100644
--- a/eclipse/samples/DynaTable2/build.xml
+++ b/eclipse/samples/DynaTable2/build.xml
@@ -20,7 +20,7 @@
     </javac>
   </target>
 
-  <target name="deploy" description="Copy output to the war folder">
+  <target name="deploy" depends="gwtc" description="Copy output to the war folder">
     <mkdir dir="${outdir}/WEB-INF/lib" />
     <copy todir="${outdir}/WEB-INF/lib" file="${gwt.install}/gwt-servlet.jar" />
   </target>
@@ -55,14 +55,16 @@
   </target>
 
   <target name="shell" depends="javac" description="Run the deployed app in GWT hosted mode">
-    <java classname="com.google.gwt.dev.GWTShell" fork="yes" failonerror="true">
+    <java classname="com.google.gwt.dev.GWTHosted" fork="yes" failonerror="true">
       <jvmarg value="-Xmx256M"/>
       <jvmarg value="-Dgwt.devjar=C:\gwt\releases\1.6\build\staging\gwt-windows-0.0.0\gwt-dev-windows.jar"/>
       <arg value="-out" />
       <arg file="${outdir}" />
       <arg value="-extra" />
       <arg file="${extradir}" />
-      <arg value="http://localhost:8888/DynaTable2.html" />
+      <arg value="-startupUrl" />
+      <arg value="DynaTable2.html" />
+      <arg value="com.google.gwt.sample.dynatable.DynaTable2" />
       <classpath>
         <pathelement location="../../../samples/dynatable/src" />
         <pathelement location="${outdir}/WEB-INF/classes" />