GWT Version per project

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

GWT Version per project

Postby michael » Mon Jul 23, 2007 6:50 am

Currently, you set the directory to GWT under Window -> Preferences -> Designer -> GWT. This is a global setting for eclipse. It'd be nice if you could set the GWT version per project (like you can w/ JVMs).

Currently, we have a version of our product in the field under GWT 1.3.3, and are in development of the next version based on GWT 1.4. Due to the restriction of setting the GWT version globally, we're currently having to switch back and forth (which doesn't seem to work that great), every time we want to switch which version we're working on.

Yes, we could install eclipse twice in different locations, with different workspaces and do it that way, but that's really more that should be required. If this setting was project based instead, it'd help alot.

Thanks in advance.
Posts: 14
Joined: Tue Jan 23, 2007 9:06 am
Location: New Jersey

Re: GWT Version per project

Postby Eric Clayberg » Wed Jul 25, 2007 7:15 am

The Designer > GWT preference just sets the JDT GWT_HOME classpath variable. Unfortunately, classpath variables are currently global within Eclipse, so this can not be configured on a per project basis.

That said, your project doesn't actually need to use the GWT_HOME classpath variable. You can modify the .classpath file to specify an absolute path to gwt-user.jar. When we create a ClassLoader at design time, we just use the .classpath, and don't look at the GWT_HOME variable.

If you also want to be able to launch the application using our GWT launch configurations, you will also need to add the path to gwt-dev-windows.jar. You will end up with something like this (when you want to use 1.4.10 and GWT_HOME is configured for 1.3.3):

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
   <classpathentry kind="src" path="src"/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
   <classpathentry kind="lib" path="C:/gwt-windows-1.4.10/gwt-user.jar"/>
   <classpathentry kind="lib" path="C:/gwt-windows-1.4.10/gwt-dev-windows.jar"/>
   <classpathentry kind="output" path="bin"/>
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests