Can't put project under workspace??? Dummass Noob question. [message #13894] |
Mon, 05 May 2003 14:19  |
Eclipse User |
|
|
|
Originally posted by: tgm1024badlyspelledsite.hotmale.com
Guys, this is ridiculous: I'm stuck out the gate and feel like a shmuck.
Because I'm used to it with other IDE's, I want this:
C:\Devel
C:\Devel\Projects
C:\Devel\Source
C:\Devel\Classes
But when I go to create the project and decide to not use the default of
C:\Devel, and try to enter in C:\Devel\Projects for the directory, it
disallows it saying that the project directory cannot be a subdirectory of
the workspace.
Huh?
When I create a project, say "Test", using the default workspace path of
C:\Devel, it creates and put the project where I'd expect C:\Devel\Test.
What's the logic here: Why's it ok in the latter case but not the former? I
cannot find the answer to this.
|
|
|
|
|
|
|
|
|
Re: Can't put project under workspace??? Dummass Noob question. [message #17803 is a reply to message #17769] |
Thu, 08 May 2003 17:40  |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
Muad'Dib wrote:
> >
> >> I suppose I can deal with what you say. I'll move the workspace
> >> back into the programs/eclipse area I guess.
> >
> >> This still doesn't make any sense to me: Why would it try to
> >> restrict the placement of a project directory someplace where it
> >> itself likes to place project directories.
> >
> > Because projects placed in the default location must all be rooted at
> > the base workspace directory. If C:\Devel is your workspace
> > directory, any project placed under that directory must be a direct
> > subdirectory of C:\Devel. This means that C:\Devel\Whatever is valid
> > whild C:\Devel\Projects\Whatever isn't.
> But I'm not /using/ the default location. I unchecked that, and it still
> would not allow me to place it into C:\Devel\Projects\Whatever.
> It's as if the rule is: "for safety sake, we don't want your project
> directory and workspace directory to share base directories unless it is in
> the default location." Or some such.
> There seem to be a really obtuse set of rules for this. I'm investigating
> further, and discovering more.
The purpose of the workspace is 2 fold. It provides a location to store
information about the preferences you have selected and what projects you
have defined for that workspace. It also provides a default location for
storing projects. In order to effectively manage the workspace, Eclipse
places restrictions on the projects created there. They must
subdirectories of the workspace root directory. I believe that this is
primarily do to the problem of embedding projects within projects.
Embedding leads to confusion with regards to package names, where does one
package hiearchy end and another begin.
Within a project, it is possible to add additional directories without
messing up your package structure. You do this by defining source
directories. Using your example, you could have your workspace rooted at
C:\Devel. You would define a project called Projects which would begin at
C:\Devel\Projects. You could then define a source directory within
Projects called Whatever. Your package structure would then begin within
C:\Devel\Projects\Whatever. I don't think that this is exactly what you
want by you might be able to make it work.
Eclipse also provides the ability to define projects that exist outside
the workspace entirely. In this case, they cannot begin anywhere within
the workspace hiearchy. You create these projects by unchecking the use
default option when creating the project. This allows the projects to be
created virtually anywhere outside the workspace.
The majority of the projects that I use with Eclipse exist completely
outside the workspace. I have a directory at C:\Workspace to hold my
preferences and a couple of scratch projects for testing out code. The
major development projects exist in other directories on my hard drive.
|
|
|
Powered by
FUDForum. Page generated in 0.03637 seconds