Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Sharing Project with CVS
Sharing Project with CVS [message #43864] Thu, 29 May 2003 18:10 Go to next message
Eclipse UserFriend
I created a project outside the default workspace since we do not want to
mix our own files under the Eclipse installation -- default workspace is
right under the install directory which is bad form in my opinion. The
project is shared under CVS but and I can open it up after getting it from
scratch on my machine.

The problem is we cannot open that project on anybody else's machine. We get
the project from CVS then install Eclipse but the Open Project is grayed
out. We cannot import because that does not open the project but rather
creates a new one. What are we doing wrong? We want to be able to get the
files from CVS, install Eclipse and open the project.

TIA
Re: Sharing Project with CVS [message #44110 is a reply to message #43864] Thu, 29 May 2003 23:36 Go to previous messageGo to next message
Eclipse UserFriend
Rod Macpherson wrote:
> I created a project outside the default workspace since we do not want to
> mix our own files under the Eclipse installation -- default workspace is
> right under the install directory which is bad form in my opinion. The
> project is shared under CVS but and I can open it up after getting it from
> scratch on my machine.
>
> The problem is we cannot open that project on anybody else's machine. We get
> the project from CVS then install Eclipse but the Open Project is grayed
> out. We cannot import because that does not open the project but rather
> creates a new one. What are we doing wrong? We want to be able to get the
> files from CVS, install Eclipse and open the project.

Rod,

You need to understand the Eclipse concept of "workspace". First, you
can use the -data command line arg to point Eclipse to any workspace
directory you want. Open Project has nothing to do with opening a
project somewhere else in the filesystem - it simply deals with toggling
the opened/closed state of a project that is already in your workspace.

Jeff
Re: Sharing Project with CVS [message #44323 is a reply to message #43864] Fri, 30 May 2003 08:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Rod Macpherson wrote:

>I created a project outside the default workspace since we do not want to
>mix our own files under the Eclipse installation -- default workspace is
>right under the install directory which is bad form in my opinion. The
>project is shared under CVS but and I can open it up after getting it from
>scratch on my machine.
>
>The problem is we cannot open that project on anybody else's machine. We get
>the project from CVS then install Eclipse
>
In addition to Jeff's comments: why first checkout and then start
Eclipse? You should start Eclipse (with - data
<myFreshAndEmptyWorkspace> and then checkout the project(s) using the
"CVS Repositories" view.

HTH
Dani
Re: Sharing Project with CVS [message #44851 is a reply to message #43864] Fri, 30 May 2003 11:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.removeme-ehlarson.com

Eclipse will create the workspace directory in your working directory. I
handle my eclipse installation by unzipping eclipse into a directory
like eclipse-2.1, set a symlink to it named eclipse to the install
directory, and then use eclipse/eclipse to run eclipse. Eclipse then
creates and uses a workspace in the working directory.

My complaint is that there aren't seperate directories for user
installable plug-ins and features. If there were I would be able to use
the symlink trick for these as well.

Rod Macpherson wrote:
> I created a project outside the default workspace since we do not want to
> mix our own files under the Eclipse installation -- default workspace is
> right under the install directory which is bad form in my opinion. The
> project is shared under CVS but and I can open it up after getting it from
> scratch on my machine.
>
> The problem is we cannot open that project on anybody else's machine. We get
> the project from CVS then install Eclipse but the Open Project is grayed
> out. We cannot import because that does not open the project but ratherse
> creates a new one. What are we doing wrong? We want to be able to get the
> files from CVS, install Eclipse and open the project.
>
> TIA
>
>
Re: Sharing Project with CVS [message #45218 is a reply to message #44110] Fri, 30 May 2003 15:26 Go to previous messageGo to next message
Eclipse UserFriend
We tried the -data switch previously but eclipse claimed there were no
projects. We have workspace foo and project bar with the dot project file
under foo since that is where eclipse created it: /foo/bar/.project

Set the data switch as follows: -data /foo
Re: Sharing Project with CVS [message #45247 is a reply to message #44323] Fri, 30 May 2003 15:38 Go to previous messageGo to next message
Eclipse UserFriend
I created the Eclipse project and checked in the dot project and dot
classpath files. Therefore my workspace had the project in it but not other
developers. The other developers had code changes they did not want to check
in yet. They just wanted to checkout the eclipse project files and launch
it. Import sounds promising but it creates a new project using a structure
that was never specified in the orginal project: it creates its own.
Re: Sharing Project with CVS [message #45388 is a reply to message #45218] Fri, 30 May 2003 16:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Rod Macpherson wrote:

> We tried the -data switch previously but eclipse claimed there were no
> projects. We have workspace foo and project bar with the dot project file
> under foo since that is where eclipse created it: /foo/bar/.project

> Set the data switch as follows: -data /foo



The project contents exist, but it needs to be defined to eclipse. Go to
File->New->Project->Java Project. Enter bar as the project name. Click
Finish. The project will be created using the .project and .classpath
files in the bar directory.
Re: Sharing Project with CVS [message #45655 is a reply to message #45388] Fri, 30 May 2003 18:23 Go to previous message
Eclipse UserFriend
We did an import and then configured the workspace/project on each machine.
I suppose creating a new project would have done the same thing but nobody
thought to create a new project in order to open an existing one. I think
were happy campers now. Thanks for the explanations guys.
Previous Topic:setting up an EAR project in eclipse
Next Topic:When to use import
Goto Forum:
  


Current Time: Mon Sep 15 05:50:49 EDT 2025

Powered by FUDForum. Page generated in 0.09673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top