|
|
UsingSourceWithEclipse
How to checkout the gwt-voices library and demo source code using Eclipse
Prerequisites
- Get Eclipse IDE for Java Developers. The current coordinated (3.3.x) release is Europa.
- Get Subclipse, unless you have or want to use a separate Subversion client. I recommend selecting Window -> Preferences -> Team -> SVN -> SVN Interface -> SVNKit (Pure Java).
- Get Google Web Toolkit and extract the archive to a convenient directory. The contents of this archive will be used to create the _Google Web Toolkit 1.5 user library.
- Create a new User Library via Window -> Preferences -> Java -> Build Path -> User Libraries -> New -> _Google Web Toolkit 1.5.
- Select Add JARs..., then specify the location of the gwt-user.jar in your GWT directory.
- Again Add JARs..., then specify the location of the gwt-dev-<platform>.jar in your GWT directory.
- Install and configure the Motion-Twin compiler
- Download and install mtasc
- Select Windows -> Preferences -> Run/Debug -> String Substitution, then select New... to create a new variable named _MTASC
- Name: _MTASC
- Value: <complete path to the mtasc executable>
- Description: Motion-Twin Compiler
Checking out gwt-voices from Subversion
- Checkout the code with File -> Import -> Other -> Checkout Projects from SVN -> Create new repository location. Specify http://gwt-voices.googlecode.com/svn/trunk/. This will give you the source code for the gwt-voices library, the source code for the demo (examples), a test launch configuration and the Eclipse project.
- For a specific release, instead specify http://gwt-voices.googlecode.com/svn/tags/ and browse for a tagged subfolder from there.
- For a specific release branch, instead specify http://gwt-voices.googlecode.com/svn/branches/ and browse for a tagged subfolder from there.
- Select the top-level Voices folder, click Next. Use the default project name Voices and click Finish.
- MAC Developers: Right-click on the project, select Debug As -> Open Debug Dialog... -> Java Application. For each of the Voices launch configurations, add the VM arguments -XstartOnFirstThread.
- If you have the Checkstyle plugin, right-click on the Voices project, select Properties -> Checkstyle, uncheck Checkstyle active for this project, click OK.
- Remove the user-src15 Source Folder if it exists in the projet:
- Right-click on the project, select Build Path -> Configure Build Path.... Under the Source tab select Voices/user-src15 and click Remove.
- Right-click on the project, select Debug As -> Open Debug Dialog... -> Java Application. For each of the Voices launch configurations, remove the user-src15 entry under the Classpath tab.
Building the Project
Building with Apache Ant
- Download and install Apache Ant
- In the Voices directory type ant
Building with Eclipse
- Right-click on the gwt-voices-0.0.0.jardesc file and select Open JAR Packager...
- Modify the export destination, then click Finish
Project Layout
| Directory | Description |
| src/ | Library source code. |
| demo/ | Drag and drop demo as seen here. |
| test/ | Skeleton launch configuration for quick testing. |
Sign in to add a comment

Thanks for teaching me the Eclipse User Library.