| Summary: | support for hierarchical project structures | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brett Porter <brett> |
| Component: | Resources | Assignee: | Platform-Resources-Inbox <platform-resources-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | john.arthorne |
| Version: | 3.0.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Brett Porter
This is what multiple source folders are designed for. From the project properties dialog, go to the Java Build Path section, on the Source tab. From there you can set up multiple source folders within the same project, each having distinct output folders for the class files if desired. You can also have other top-level folders on the project for documentation, etc. thanks for responding so quickly. However, what I'm asking is subtly but importantly different - basically "Each of the subprojects produces distinct JARs, so must remain as projects in Eclipse.", but I'll explain more. It is desirable for each of these separate projects to have their own list of libraries, and I would like to clearly define their interdependencies among each other. By using multiple source folders, even with different outputs, everything effectively depends on everything else, and on every library. While this shouldn't cause a problem, the separation would make it easier to retain the designed separations. In addition, I know of projects where there are two versions of a particular project with identical classes where they are built to target different JDK or dependency versions (eg an implementation of something that users servletapi 2.3 and another using 2.4). I'm assuming these would have to be in separate folders, which would preclude them from being in the same tree. Ok, your assertion that building to separate JARs as a reason threw me off - there is no reason why each source folder couldn't produce a distinct JAR. However, if you need distinct classpaths or different JREs, then you're stuck with multiple projects. I'm marking this as a duplicate of a similar request. *** This bug has been marked as a duplicate of 35973 *** |