Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » organizing multiple projects in one workspace
organizing multiple projects in one workspace [message #48798] Thu, 07 April 2005 18:45 Go to next message
lophiomys is currently offline lophiomysFriend
Messages: 14
Registered: July 2009
Junior Member
With Eclipse 3.1M6
I have following file structure

D:\dev\ . . . . . . . . . . . Workspace (-data); containing .metatdata
D:\dev\MainProject\ . . . project already in Workspace; runs fine
D:\dev\tst\TestProj1\ . . 1st test project; containing .project .classpath from earlier WS config
D:\dev\tst\TestProj2\ . . 2nd test project; not containing any Eclipse metatdata
D:\dev\tst\TestProj3\ . . 3rd test project;

I want to include these multiple test projects as separate projects
in the Eclipse Workspace inside d:\dev, which already contains MainProject.

1.) NOK - create from existing source
new-project-java project -
create from existing source ... pointing to d:\dev\tst\TestProj1
Dlg= "New Java Project"
Error Msg= Cannot create project content in workspace
Buttons "Next" and "Finish" are greyed out.

2.) NOK - test project as Linked Sources
new-project-java project - create new project in workspace "TestProj1" -
add linked root folder d:\dev\tst called "src" in new project -
include d:\dev\tst\testproj1 only

=>
under d:\dev a new project folder for new "TestProj1" is created
whereby the "bin"-folder is forced to be within dev/TestProj
.... err msg= "output folder must denote location inside project" ...
bin is duplicated and the idea to group test projects under
directory tst is perverted.


3.) NOK Import existing project from file system
.... applied to d:\dev\tst\TestProj1 or ...\TestProj1\src

Error msg=
Invalid project description
D:/dev/tst/TestProj1 and D:/dev overlap.
- - -

I read the docu twice now but I can't organize it the way I want it.

Is there a way to organize the projects as outlined
above inside one single Eclipse Workspace?

Could it be that the Workspace data are corrupted?
Is there a way to rebuild a Workpsace?
Could it be a bug in 3.1M6 or am I doing something wrong?

Thanks for your help.
Lophiomys
Re: organizing multiple projects in one workspace [message #48994 is a reply to message #48798] Fri, 08 April 2005 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.server.net

Just a couple of remarks, probably not yet the solution:

(a) Eclipse requires the project directories to be direct subdirectories
of the workspace. So, your idea of subgouping won't work.

(b) To import, move the projects outside the workspace, then it should
work (but I havn't imported projects yet with 3.1 M6).

(c) Corrupted files: The only files that would harm being corrupt would
be the metadata and -java files. For the .java files, you can easily
test it with a simple text editor. Same applies in general to the
metadata files, though, they might me more difficult to read in plain
text. The .class files will be rebuilt on the first compile, so you can
simply delete them.

(d) You can force rebuild the workspace, if I remember it correctly, by
deleting the .metadata directory in your workspace directory. (but save
it somewhere else before you try!!!) But this will make you lose all
your editor and other settings for eclipse (they are stored in the
..plugins subdirectory. Just in case, there should also be hints on this
in the platform newsgroup and in the FAQ.

Hope this helps,

Kai

Lophiomys wrote:
> With Eclipse 3.1M6
> I have following file structure
>
> D:\dev\ . . . . . . . . . . . Workspace (-data); containing .metatdata
> D:\dev\MainProject\ . . . project already in Workspace; runs fine
> D:\dev\tst\TestProj1\ . . 1st test project; containing .project .classpath from earlier WS config
> D:\dev\tst\TestProj2\ . . 2nd test project; not containing any Eclipse metatdata
> D:\dev\tst\TestProj3\ . . 3rd test project;
>
> I want to include these multiple test projects as separate projects
> in the Eclipse Workspace inside d:\dev, which already contains MainProject.
>
> 1.) NOK - create from existing source
> new-project-java project -
> create from existing source ... pointing to d:\dev\tst\TestProj1
> Dlg= "New Java Project"
> Error Msg= Cannot create project content in workspace
> Buttons "Next" and "Finish" are greyed out.
>
> 2.) NOK - test project as Linked Sources
> new-project-java project - create new project in workspace "TestProj1" -
> add linked root folder d:\dev\tst called "src" in new project -
> include d:\dev\tst\testproj1 only
>
> =>
> under d:\dev a new project folder for new "TestProj1" is created
> whereby the "bin"-folder is forced to be within dev/TestProj
> .... err msg= "output folder must denote location inside project" ...
> bin is duplicated and the idea to group test projects under
> directory tst is perverted.
>
>
> 3.) NOK Import existing project from file system
> .... applied to d:\dev\tst\TestProj1 or ...\TestProj1\src
>
> Error msg=
> Invalid project description
> D:/dev/tst/TestProj1 and D:/dev overlap.
> - - -
>
> I read the docu twice now but I can't organize it the way I want it.
>
> Is there a way to organize the projects as outlined
> above inside one single Eclipse Workspace?
>
> Could it be that the Workspace data are corrupted?
> Is there a way to rebuild a Workpsace?
> Could it be a bug in 3.1M6 or am I doing something wrong?
>
> Thanks for your help.
> Lophiomys
>
Re: organizing multiple projects in one workspace [message #51999 is a reply to message #48994] Thu, 14 April 2005 12:55 Go to previous message
lophiomys is currently offline lophiomysFriend
Messages: 14
Registered: July 2009
Junior Member
Kai,
thanks for your reply.

So far I could determine by other test that none of the control files is damaged.

A partial solution would be,
- to create a project under d:\dev\tst\
- exclude it form the BuildPath
-- then for every TestProjX in dev\tst
- add \dev\tst\TestProjX\src as source folder on the BuildPath
- set a specific output folder to \dev\tst\TestProjX\bin

....drawback this leaves .class and .projects files for TestProj1 under \dev\tst\.
.... and its a tedious manual setup

Looking at it from the other side, this was caused by by the aim of
- having one single .metatdata for all projects, i.e. same syntax colors, code formatter
- subgrouping a multirude(:-O) of minor projects in one sub-folder within one workspace

Any suggestions for a better solution?

Cheers,
Lophiomys

On Fri, 08 Apr 2005 10:05:33 +0200, Kai Sautter <user@server.net> wrote:

>Just a couple of remarks, probably not yet the solution:
>
>(a) Eclipse requires the project directories to be direct subdirectories
>of the workspace. So, your idea of subgouping won't work.
>
>(b) To import, move the projects outside the workspace, then it should
>work (but I havn't imported projects yet with 3.1 M6).
>
>(c) Corrupted files: The only files that would harm being corrupt would
>be the metadata and -java files. For the .java files, you can easily
>test it with a simple text editor. Same applies in general to the
>metadata files, though, they might me more difficult to read in plain
>text. The .class files will be rebuilt on the first compile, so you can
>simply delete them.
>
>(d) You can force rebuild the workspace, if I remember it correctly, by
>deleting the .metadata directory in your workspace directory. (but save
>it somewhere else before you try!!!) But this will make you lose all
>your editor and other settings for eclipse (they are stored in the
>.plugins subdirectory. Just in case, there should also be hints on this
>in the platform newsgroup and in the FAQ.
>
>Hope this helps,
>
>Kai
>
>Lophiomys wrote:
>> With Eclipse 3.1M6
>> I have following file structure
>>
>> D:\dev\ . . . . . . . . . . . Workspace (-data); containing .metatdata
>> D:\dev\MainProject\ . . . project already in Workspace; runs fine
>> D:\dev\tst\TestProj1\ . . 1st test project; containing .project .classpath from earlier WS config
>> D:\dev\tst\TestProj2\ . . 2nd test project; not containing any Eclipse metatdata
>> D:\dev\tst\TestProj3\ . . 3rd test project;
>>
>> I want to include these multiple test projects as separate projects
>> in the Eclipse Workspace inside d:\dev, which already contains MainProject.
>> [... snip until end...]
Previous Topic:error after launching eclipse
Next Topic:run configuration and dlls
Goto Forum:
  


Current Time: Sat Oct 19 17:39:45 GMT 2024

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

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

Back to the top