[Yanel-commits] rev 35302 - public/yanel/contributions/ajax-components

simon at wyona.com simon at wyona.com
Sun Apr 13 21:12:00 CEST 2008


Author: simon
Date: 2008-04-13 21:11:59 +0200 (Sun, 13 Apr 2008)
New Revision: 35302

Modified:
   public/yanel/contributions/ajax-components/build.xml
Log:
new target google.hostedmode added.
this target allows you to preview your component in the gwt host mode browser.
CONFIGURE: add a property hostmode.hostpage.name in your components build property file. (see component access-policy-editor)

Modified: public/yanel/contributions/ajax-components/build.xml
===================================================================
--- public/yanel/contributions/ajax-components/build.xml	2008-04-13 18:58:56 UTC (rev 35301)
+++ public/yanel/contributions/ajax-components/build.xml	2008-04-13 19:11:59 UTC (rev 35302)
@@ -4,6 +4,7 @@
 
   <target name="usage" description="Usage">
     <echo>USAGE: ant google.compile -Dcomponent.home.dir=src/PROJECT_NAME</echo>
+    <echo>USAGE gwt host mode browser: ant google.hostmode -Dcomponent.home.dir=src/PROJECT_NAME</echo>
     <echo>NOTE: Read the README.txt or execute "ant -projecthelp"</echo>
   </target>
 
@@ -47,4 +48,20 @@
       <arg value="${module.name}" />
     </java>
   </target>
+
+  <target name="google.hostmode" depends="clean" description="Opens your component in the gwt host mode browser">
+    <!-- Read module and class name from component specific build.properties -->
+    <property file="${component.home.dir}/build.properties"/>
+    <fail unless="hostmode.hostpage.name">
+      Could not read property hostmode.hostpage.name. 
+      if you want to use google.hostedmode set hostmode.hostpage.name in your componets build.properties.
+      e.g. in ${component.home.dir}/build.properties add hostmode.hostpage.name=NameOfYourTestFile.html
+     </fail>
+     <java classname="com.google.gwt.dev.GWTShell"
+      fork="true">
+      <classpath refid="google.compile.classpath" />
+      <arg line="-out ./www"/>
+      <arg line="${module.name}/${hostmode.hostpage.name}"/>
+    </java>
+  </target>
 </project>



More information about the Yanel-commits mailing list