What's new? | Help | Directory | Sign in
Google
gwt-voices
Sound Library for Google-Web-Toolkit (GWT)
  
  
  
  
    
Search
for
Updated May 27, 2008 by fredsa
Labels: Featured
UsingSourceWithEclipse  
How to checkout the gwt-voices library and demo source code using Eclipse

Prerequisites

  1. Get Eclipse IDE for Java Developers. The current coordinated (3.3.x) release is Europa.
  2. 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).
  3. 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.
  4. 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.
  5. 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

  1. 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.
  2. Select the top-level Voices folder, click Next. Use the default project name Voices and click Finish.
  3. 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.
  4. If you have the Checkstyle plugin, right-click on the Voices project, select Properties -> Checkstyle, uncheck Checkstyle active for this project, click OK.
  5. Remove the user-src15 Source Folder if it exists in the projet:

Building the Project

Building with Apache Ant

  1. Download and install Apache Ant
  2. In the Voices directory type ant

Building with Eclipse

  1. Right-click on the gwt-voices-0.0.0.jardesc file and select Open JAR Packager...
  2. 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.


Comment by jurgenfd, Jul 08, 2008

Thanks for teaching me the Eclipse User Library.


Sign in to add a comment