Skip to main content



      Home
Home » Newcomers » Newcomers » Two external java projects in the same dir tree
Two external java projects in the same dir tree [message #71400] Mon, 30 May 2005 13:28 Go to next message
Eclipse UserFriend
Originally posted by: torf.torfbold.com

I'm just starting to use Eclipse and I'm now trying to import all my
existing projects. In the past, I've organized *all* my java sources in
one source tree, which reflects the package hierarchy. So it looks like
that:

somedir/
com/
torfbold/
project1/
...
project2/
...
org/
imp/
project3
...

My goal is to have one Eclipse-project for each of those projects in the
source-tree. I started with importing project1: To get the packages
right, I choose "somedir" as directory to import from, and excluded
directories other than those of project1. That worked fine.
But when I know try to import project2 the same way, I only get the
message "somedir/com and somedir/com overlap", and I'm not allowed to
proceed any further.

Am I only allowed to create projects which don't share directories?

Any tips on how to solve the problem are appreciated.

Greetings,
Florian
Re: Two external java projects in the same dir tree [message #71419 is a reply to message #71400] Mon, 30 May 2005 13:42 Go to previous messageGo to next message
Eclipse UserFriend
I think this is the default behaviour.
We have usually have organized projects with submoduls in the tree like
yours in a CVS repository (there are also pkugins for Subversion and other
Source control systems). From there you can check out every single modul
into a java project in eclipse.

Uwe

"Florian Brucker" <torf@torfbold.com> schrieb im Newsbeitrag
news:d7fide$rh0$1@news.eclipse.org...
> I'm just starting to use Eclipse and I'm now trying to import all my
> existing projects. In the past, I've organized *all* my java sources in
> one source tree, which reflects the package hierarchy. So it looks like
> that:
>
> somedir/
> com/
> torfbold/
> project1/
> ...
> project2/
> ...
> org/
> imp/
> project3
> ...
>
> My goal is to have one Eclipse-project for each of those projects in the
> source-tree. I started with importing project1: To get the packages
> right, I choose "somedir" as directory to import from, and excluded
> directories other than those of project1. That worked fine.
> But when I know try to import project2 the same way, I only get the
> message "somedir/com and somedir/com overlap", and I'm not allowed to
> proceed any further.
>
> Am I only allowed to create projects which don't share directories?
>
> Any tips on how to solve the problem are appreciated.
>
> Greetings,
> Florian
Re: Two external java projects in the same dir tree [message #71474 is a reply to message #71400] Mon, 30 May 2005 14:51 Go to previous message
Eclipse UserFriend
"Florian Brucker" < wrote:
> Am I only allowed to create projects which don't share directories?
No, you can play with the inclusion/exclusion features of the source folders
tabs in the Java build path properties of your projects. That is going to be
hairy.

Honestly, you are having a setup that sounds very un-common to me, eclipse
or not.

The notion of project in Eclipse's java development tool is more than just a
source tree.
I would encourage you to read the fine documentation on that topic and play
with the example projects, and wizards to get a better understanding of how
eclipse works.
Previous Topic:Eclipse cannot connect to RCSNV server
Next Topic:Is Eclipse case-sensitive?
Goto Forum:
  


Current Time: Fri Apr 25 01:39:20 EDT 2025

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

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

Back to the top