GWT + SVN + Eclipse

56 views
Skip to first unread message

Raymond Cidad

unread,
Sep 25, 2011, 8:20:37 PM9/25/11
to google-we...@googlegroups.com
Hello guys
I'm having a hard time setting up a GWT into eclipse to work with a team, using SVN.

Where we are:
1. I created the project. Did some code. Runs fine.
2. Create the SVN repository (in the cloud with codesion.com)
3. The other team member, did checkout. He can see the code

Problem:
- He cannot run the project. It doesn't compile right. 

I THINK THE PROBLEM IS RELATED TO  BUILD PATH. 

QUESTIONS:
1. WE ARE NOW TRYING TO ADD THE WAR/WEB-INF/DEPLOY TO THE SVN:IGNORE TO SEE IF THAT HELPS. DO YOU GUYS TELL SVN NOT TO UPLOAD SOME DIRECTORIES?

2. WHAT CHANGES DO YOU GUYS DO THE PROJECT AFTER YOU DO CHECKOUT THE FIRST TIME? 

I'M SURE THE PROBLEMS SHOULD BE SOLVED WITH A COUPLE OF "CLICKS" , BUT I CAN'T FIGURE OUT THOSE "CLICKS"

THANKS FOR YOUR HELP!!!!







lakumc

unread,
Sep 26, 2011, 10:37:10 AM9/26/11
to Google Web Toolkit
Hi Raymond,
what's the exact error message that your collegues get?

On 26 Set, 02:20, Raymond Cidad <raym...@globalsolutioncorp.com>
wrote:

Brandon Donnelson

unread,
Oct 9, 2011, 6:41:18 PM10/9/11
to google-we...@googlegroups.com
If you import the project on the other machine, check your classpath. Most of times it has absolute directory names that are not correct due to the user profile. What I do is stick it in the exact same directory on both computers. This doesn't always work. Another thing I do is unselect GWT in eclipse and apply. This should remove it as a GWT project. Then go back and select it again. This often will reset some of the GWT setup. You can also view the classpath files directly via a text editor and can edit the paths to reflect the correct directory structure. If you get the classpath correct the stuff should work just fine. 

Hope that helps,
Brandon Donnelson

Brandon Donnelson

unread,
Oct 16, 2011, 7:45:27 PM10/16/11
to google-we...@googlegroups.com
To your youtube comments:

1- Great job with the videos and gwt website. 

2- I think I sent you a message in the gwt google groups. I'm trying to understand how to work withSVN and team members. But I haven't found the north.
I mean, I uploaded to a svn repo, and we do commit, checkout, update. But every time someone do a commit, and then we do update... problems again.. then we spend hours fixing parameters and stuff. We waste so many hours with this. 
Yes, I may sound like an idiot. 

questions:
A- What do you remove from the check list when you do the first commit (or you use svn:ignore)
I've tried ignoring: 
war/"module-name"
war/web-inf/deploy
.settings, .classpath .project

B- Do you use any variable (like GWT-HOME)? I've seen this recommendation sometimes. 

C- After the others members do the: "checkout project from svn", and enter url, and other things. What chan... more

::::

Your right svn:ignore, the compilation directories. I usually don't on classpath and .settings and .project, but that might be good, so you don't screw up another's configuration. I've build ant files to do specific project setup options. Once your subordinates setup the project, the .classpath shouldn't change much for them. Its best to have a consistent approach with dependencies too. When things can go wrong, and they do, I create script (sh|bat) to backup of the essentials, and to pass around for the others to do. That way, you crash your .classpath, you can drag it back with ease.

I've done the same thing, update the .classpath on ubuntu, and it replaces it with a windows .classpath and sucks to rebuild that file. I know the pain. I typically will tell the others to watch out what they update, typically do specific small updates on the /src folder only. 

Conflicts on commit: If your going to be working on the same files, and this spans all development types, you'll have to use branches, merge and such, but this is a management preference. 

The other way I fix a crash quickly, is create another workspace and setup the exact same project frame. This will create the files you'll need to slip back into broken project. 

Hope that helps. I'm not sure I answered your questions.
Brandon Donnelson

Brandon Donnelson

unread,
Oct 16, 2011, 7:49:34 PM10/16/11
to google-we...@googlegroups.com
By the way. Thanks for the nice comments on the Videos.
Brandon

Raymond Cidad

unread,
Oct 16, 2011, 9:04:24 PM10/16/11
to google-we...@googlegroups.com
Thanks Brandon

Right now we are doing a Labs project to test some functionality for a new project. 
Next week, when I create the new project, I'm going to (well, I'm going to try to) do a step by step SVN + Eclipse + GWT instructions to share, for all the newbies like me that are struggling with this. 

I'll let you know.

thanks again for your info. Great page + youtube + help-in-the-group + quick response :) 
rc
Reply all
Reply to author
Forward
0 new messages