Saturday, February 21, 2009

My wish list for Google IO

Google IO is due in two months. As it is one of the best developer event and Google comes up with latest releases of tools and new tools I am expecting following tool releases this time.

1. Proper Chrome Build for Linux
2. GWT 1.6
3. Out of Process Hosted Mode Debugging (GWT)
4. Google App Engine programming using Java

What would you like to have?

Thursday, February 19, 2009

Building GWT OOPHM from Source

Checking out GWT Source code from the SVN

1. Check out OOPHM Code from http://google-web-toolkit.googlecode.com/svn/branches/oophm/ into d:/oophm
(Use SVN http://www.collab.net/downloads/subversion/)
2. Check out GWT tools from http://google-web-toolkit.googlecode.com/svn/tools/ into D:/gwt_tools
3. Download Ant if you don’t have it. http://apache.hoxt.com/ant/binaries/apache-ant-1.7.1-bin.zip and unzip it into d:/ant folder


Note: GWT Tools is a big project. If you already have it because you have built GWT project from SVN then use the same.

Setting Path

1. Create user’s variable and Name as GWT_TOOLS and Variable value as D:/gwt_tools
Optional depending upon if you have already configured the ANT on your machine.

2. Edit Environment Variables. In System Variable append;D:\ant\apache-ant-1.7.1\bin; to your PATH variable.
3. Create user’s variable and Name as ANT_HOME and Variable value as D:\ant\apache-ant-1.7.1

Building GWT OOPHM

1. Change directory to build tools by typing ‘cd d:/oophm’ on Command prompt
2. Type ant on command prompt. (D:\tools\oophm\oophm1\plugins\xpcom\prebuilt)
3. In d:/oophm/build/staging the complete gwt build is available. Please note the plugin folder contains the Firefox and IE plugin. There is plugin in D:/oophm/plugin/xpcom/prebuilt/ oophm-xpcom.xpi.
4. You need to install the appropriate plugins to the browsers.
5. If you are using Firefox as default browser then just drop oophm-xpcom.xpi in it and it will install the plugin for firefox.
6. Include gwt-dev.jar in classpath and remove previous gwt-dev-XXX.jar.
7. Start debugging the project as usually you use to do. You will see different shell which popsup. It will try to open firefox or the default browser with the URL which gets printed in bottom Console. (In my case the firefox could not open by default. So I copied the URL in the browser navigation text bar and it worked).
8. You can now debug your application and get all the advantages.

Advantages of Out of Process Hosted Mode Debugging

1. The Debugging is fast.
2. You can use browser of your choice for example Firefox, IE and the you can choose any version of the browser.

Disadvantages

1. As of now the compilation does not work from Hosted Mode Shell.

Monday, February 16, 2009

Building GWT from Source

Checking out GWT Source code from the SVN

  1. Check out GWT Code from http://google-web-toolkit.googlecode.com/svn/trunk/ into d:/gwt
  1. Check out GWT tools from http://google-web-toolkit.googlecode.com/svn/tools/
    into D:/gwt_tools


  2. Download Ant if you don’t have it. http://apache.hoxt.com/ant/binaries/apache-ant-1.7.1-bin.zip and unzip it into d:/ant folder.
Note: GWT Tools is a big project

Setting Path

  1. Create user’s variable and Name as GWT_TOOLS and Variable value as D:/gwt_tools

Optional depending upon if you have already configured the ANT on your machine.

  1. Edit Environment Variables. In System Variable append;D:\ant\apache-ant-1.7.1\bin; to your PATH variable.

  2. Create user’s variable and Name as ANT_HOME and Variable value as D:\ant\apache-ant-1.7.1

Verify whether ant is set up properly by typing ant on command prompt.

Building GWT

  1. Change directory to build tools by
    typing ‘cd d:/gwt/build-tools’
    on Command prompt

  2. Type ant on command prompt.

    1. Three Jar files will be created in d:/gwt/build/lib
i. ant-gwt.jar
ii. ant-customchecks.jar
iii.
gwt-doctool.jar

  1. cd d:/gwt/dev

  2. Type ant on command prompt
    1. gwt-dev-XXX.jar file for respective, linux, mac and windows are
      created in d:/gwt/build/lib
XXX stands for the OS
    1. Another jar is created name gwt-dev-oophm.jar. This is the Out of Process Hosted
      Mode debugging.

  1. Type cd d:/gwt/users and build using ant
    1. gwt-user.jar
  1. Type cd d:/gwt/servlet and build using ant
    1. gwt-servlet.jar is created

You can use GWT Latest build and experiment on coolest features of