[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Problems creating projects in different locations...
|
See comments below...
"Miriam Ford" <miriamf@xxxxxxxxxx> wrote in message
news:3B829F22.242D0806@xxxxxxxxxxxxx
> 1. When selecting a drive other than where I have eclipse installed
> (ie: d:\) for the project location, the project seems to be created in
> eclipse and the navigator view displays it, but the actual project
> directory is not created in the d:\ drive, and what the navigator view
> displays for this project is a tree view of the d:\ drive. Whatever
> files I create in this project end up residing in the root of the d:\
> drive not in a project directory under the d:\ drive.
>
This is the desired behaviour. When you create a project (e.g. "abc") using
the default content location, yes behind the scenes an "abc" directory is
created in the workspace metadata area for the project content. But when you
specify a content location for your project, that location is taken as is.
So if you specify the content location of "abc" to be "d:\temp", then that's
what you get. This is done so you can easily point to existing directories
and pick up their contents.
If the name of the project was always added to the end of the user specified
project content location, then that would pose problems. Consider the
following scenerios:
1). I have content in "d:\temp" that I want my project to point to. I would
have to name my project "temp" and point its location to "d:\". Not a very
good project name. The way that it is implemented, the user is not forced to
have directory names and project names to be the same.
2). I have a network drive mapped to "N:\" which contains resources for my
project. If the project name is added to the content location, then this is
impossible since the resources are at the root of the drive.
So basically when you specify a folder on disk as the project content
location, what you are really doing is saying is "project ABC is really
folder c:/temp/foo on disk".
> 2. When selecting a drive where I have eclipse installed but not the
> actual eclipse directory path (ie: c:\), an error message box is
> displayed with the following information: Title: Creation Problems,
> Message: Invalid project description, Details: d:/ and
> D:/eclipse/workspace overlap.
>
This is correct. Consider the case where you set your project content
location to be "d:\" and then you create a folder called "eclipse" and then
a subfolder called "workspace" and then start manipulating files. You are
essentially changing your development installation and could potentially be
messing with your workspace metadata. Not a good idea. The installation
directory for the development image cannot overlap with any project content
directories for this reason.
> 3. When I provide the location for the project to be a directory
> outside of the eclipse product directory and this directory doesn't
> exist (ie: c:\adirectory), the project (abc) is created and displayed in
> the navigator view, but it's not found in the directory c:\adirectory.
> All files created in the project abc actually reside in the directory
> c:\adirectory not in c:\adirectory\abc.
>
See comments for #1 above.
I hope this helps clear things up. If you have any other comments,
questions, or concerns feel free to post them. Thanks.
dj