Bug 45384 - Permit per-source-directory classpaths
Summary: Permit per-source-directory classpaths
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-22 11:40 EDT by j grant CLA
Modified: 2003-10-23 08:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description j grant CLA 2003-10-22 11:40:35 EDT
I've inherited a project which we're migrating (hopefully) to eclipse 
development. 
 
The project is logically broken down into core functionality (under /src/core) 
and UI efforts (/src/foo, /src/bar). Ideally we'd like to have all this as one 
project (for the team management stuff). Now, /src/core requires one CLASSPATH; 
the code in /src/foo depends on a slightly larger classpath (which includes the 
compiled /src/core stuff). 
 
So we're looking for a way to specify per-source-directory CLASSPATHs in a 
multi-source-dir project that will let us continue development with the 
existing project layout. Merging source directories is not practical for many 
reasons. If there's a "better" way of doing something like this with eclipse 
(that also basically shows the whole file layout under one navigator, and can 
cope with CVS operations etc) I'd love to know what it is.
Comment 1 Jerome Lanneluc CLA 2003-10-22 13:19:44 EDT
Your setup looks like the scenario described in the Help: Java Development
User Guide->Getting Started->Project configuration tutorial->Sibling
products in a common source tree.

OK to close?
Comment 2 Philipe Mulet CLA 2003-10-22 15:20:46 EDT
In Eclipse, a project is carrying a classpath. Thus you'll have to use several 
projects to achieve several classpaths. But as Jerome pointed out, these 
projects can be defined on top of the same directory structure.
Comment 3 Philipe Mulet CLA 2003-10-22 15:22:03 EDT
To clarify, each logical piece should correspond to a project (you can then 
prereq a project from another one's classpath).
Comment 4 j grant CLA 2003-10-23 05:58:37 EDT
Thank-you. The terminological clarification helps greatly. I'll continue 
experimenting; this can be closed (solved).
Comment 5 Philipe Mulet CLA 2003-10-23 08:38:08 EDT
Closing. Don't hesitate to interact further with us or simply on the JDT 
newsgroup. Others probably met similar problems...