| Author |
How do I tell Eclipse where to put my "workspace"
|
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
I've recently started to try and use Eclipse again, this time because of the bold claims for its integration with CVS, which I find very fiddly to use on its own. But I'm baffled again. Here's my situation. I want to download the sources of a sourceforge project so I can look at them and contribute. the Eclipse help (such as it is) suggests creating a new CVS reference, then clicking "download as project" (or something, I don't have the exact text here). If I were doing this by hand I would create a directory, cd into it, then get the sources. However, Eclipse seems to insist on creating a subdirectory inside the Eclipse installation tree (.../eclipse/workspace/projectname/...) which is not where I want to put it. Does anyone have any suggestions how to tell Eclipse to create the new project somewhere else? Thanks.
|
A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
You can choose "checkout as...", which will give you a dialog where you can change the default location. You can also move the project to a different directory later on by choosing "Move..." (Navigator) or "Refactor/Move..." (Package Explorer) from the context menu of the project. Hope this helps!
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
Thanks. That worked (eventually) Is anyone else using Eclipse to download project source from sourceforge? I find it's very flaky and keeps giving me no connection and connection reset by peer errors if the server doesn't reply immediately.
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
I didn't have any problems connecting to source forge yet. And I am using Eclipse for over a year this way...
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
|
Strange. I'll try and find out more about when exactly it does it. Might be something local.
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
Frank, I just saw that when you start eclipse you can specify the workspace with the -data option. I moved the workspace directory out of the eclipse tree and modified the shortcut accordingly. Works OK even with CVS as far as I can see. [ April 06, 2003: Message edited by: Barry Gaunt ]
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
Thanks Barry. I wasn't aware of that, but I've taken to just overriding each project directory when I create it. Seems to work OK for me so far. My setup is complicated a little as I have the "master" current version of all my woking projects on removable media (one of those little USB keyfobs), and slightly differently-configured versions of Eclipse (or no Eclipse at all, in some cases) on the various machines I edit/test on. The wierd bit is that only one of the machines has access to CVS, so I refresh and resynchronize the project whenever I get back to that machine, but develop independently at the others.
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
As for the flaky CVS access, it seems that the problem occurs with "pserver" access but not with "extssh" access. The problems I was getting, only happened when I was using "pserver" mode as recommended by sourceforge to download the source of a project I'm not a developer for. Working using "extssh" mode on my own projects has beed pretty smooth so far.
|
 |
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3878
|
|
Originally posted by Frank Carver: Thanks. That worked (eventually) Is anyone else using Eclipse to download project source from sourceforge? I find it's very flaky and keeps giving me no connection and connection reset by peer errors if the server doesn't reply immediately.
Frank, if you look under the properties for CVS in your Eclipse setup, you'll find a timeout value for connecting to the CVS server -- it's set at 60 seconds, which can be too short for very hard-hit or flaky servers. I usually up it to 120 seconds. Kyle
|
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
|
Ah. Thanks Kyle. I hadn't thought about looking for a config.
|
 |
 |
|
|
subject: How do I tell Eclipse where to put my "workspace"
|
|
|