My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 12, 2007 by sanjiv.jivan
BuildInstructions  

Compiling from Source

Checking Out the Source from Subversion

Checking out the GWT-Ext source is most useful if you plan to compile GWT-Ext yourself. The pre-built GWT-Ext distribution already contains all the Java source, so you don't actually need to check it out from the repository just to debug through it. Just tweak your IDE to read source from the GWT-Ext jars.

GWT-Ext is hosted on Google Code project hosting, so you check out the source for GWT-Ext using a Subversion client as you would for any other project hosted on Google Code:

svn checkout http://gwt-ext.googlecode.com/svn/trunk/ trunk

The project source code access page has additional instructions for browsing the source online or getting a Subversion client if you don't already have one.

Here's a good writeup if you're using Eclipse : http://wiki.oreade.nl/Wiki.jsp?page=GwtExtSubversionDownloadCompile.

Compiling from Source

Everything is Java source that can be built with the included GWT-Ext Ant build files.

  • Install Ant 1.6.5 http://ant.apache.org/bindownload.cgi or later. We'll assume that the ant command is in your path.
  • Check out the GWT-Ext prerequisite tools and third-party libraries:
  • ~/gwt-ext$ svn checkout http://gwt-ext.googlecode.com/svn/tools/ tools
  • Check out the GWT-Ext source:
  • ~/gwt-ext$ svn checkout http://gwt-ext.googlecode.com/svn/trunk/ trunk
  • Switch to the directory into which you checked out the GWT-Ext source. Let's assume you checked it out into ~/gwt-ext/trunk. Make sure you're in that directory..
  • ~/gwt-ext$ cd ~/gwt-ext/trunk
    then just invoke Ant
    ant
  • The GWT-Ext build creates a binary distribution in the build/dist subdirectory of the source root directory. In this example, the distributions would be in ~/gwt-ext/trunk/build.

Testing

  • To perform the tests, simply run
  • ant test
    and verify that there are no failures.

Ant JUnit Issues

There is a problem, detailed at ant.apache.org, where ant cannot find the JUnit classes. The simple workaround is to either:

  • Delete ant-junit.jar from the ant lib directory (for example, /usr/share/ant/lib/)
  • Copy junit.jar into your ant lib directory

Ant XSLT issues

If you get an error like the one below, please remove the file {ANT_HOME}\lib\xercesImpl.jar from your Ant installation as the copy of Xerces distrbuted with certain versions on Ant causes conflicts.

[java] FATAL ERROR:  'Could not compile stylesheet'

BUILD FAILED
C:\java\gwt-ext-svn\trunk\build.xml:35: The following error occurred while executing this line:
C:\java\gwt-ext-svn\trunk\build.xml:15: The following error occurred while executing this line:
C:\java\gwt-ext-svn\trunk\doc\build.xml:63: java.lang.RuntimeException: Unable to complete the xslt tranform

Comment by christ...@ribeaud.ch, Jan 27, 2008

The upper instructions only work if your OS is Windows. This will not work under Mac with the current Ant script (as it looks for the path tools/lib/gwt/1.4.60/mac and you only get the windows one while performing svn checkout tools). Creating the mac directory and moving there the Mac specific libraries will solve the problem.

Comment by franck.rasolo, Jun 04, 2008

Precisely, you will need to:

~/gwt-ext/tools/lib/gwt/1.4.60/mac$ cp -p ~/gwt-mac-1.4.62/gwt-*.jar .
~/gwt-ext/tools/lib/gwt/1.4.60/mac$ cp -p ~/gwt-mac-1.4.62/lib*.jnilib .

You will also need to unzip Ext 2.0.2 to ~/gwt-ext/tools/lib/ext/2.0.2 - et voilĂ ! :)

Comment by jpratt3000, Jul 03, 2008

how about a maven2 pom?

Comment by ronaldmathies, Aug 19, 2008

Hi Sanjiv,

I'm really happy that you refer to the wiki about compiling using Eclipse, i have moved my site to a new location (the other one will soon be taken down). I would appreciate it if you could change the url:

Old: http://code.google.com/p/gwt-ext/wiki/BuildInstructions New: http://java.sodeso.nl/web-frameworks/gwt-ext/how-to-get-the-very-latest-build-of-gwt-ext

Comment by avadh4all, Oct 27, 2008

I tried to compile on both windows and linux but i get following error:

Can not find symbol class JavaScriptObject?

I have set up the environment variable GWTEXT_TOOLS to 'tools' directory and its not able to find the JavaScriptObject???


Sign in to add a comment
Hosted by Google Code