• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to import sample GWT code into eclipse project

 
peter tong
Ranch Hand
Posts: 246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I download the sample code from
Using Servlet Sessions in GWT – Tutorial

but there is no .project file, I want to know how to import this source folder into eclipse and run it?
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, there is no direct way of importing it. Have you got the GWT+Eclipse plugin installed? If yes, then you will have to copy paste the downloaded code and refactor it a bit.

 
Philip Thamaravelil
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter,
Why don't you just create your own .project file? Copy an existing one and substitute out your project-specific properties in notepad.

Good Luck!
Philip
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philip Thamaravelil wrote:Peter,
Why don't you just create your own .project file?

This might not work. The project structure of this download is different than the project structure of the latest GWT project
 
Philip Thamaravelil
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
Philip Thamaravelil wrote:Peter,
Why don't you just create your own .project file?

This might not work. The project structure of this download is different than the project structure of the latest GWT project



Maneesh,
Thanks for your comment. This doesn't matter. Once the .project file is created and the project is imported into your eclipse workspace, you can update your resource paths accordingly.
I have personally done this with a GWT project in servlets and also with Liferay Portal portlets. The basic project file essentially contains a project name, and a few build parameters.

Cheers,
Philip
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic