| Summary: | Sub Projects | ||
|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Brian Dillon <brian.dillon> |
| Component: | jst.j2ee | Assignee: | Chuck Bridgham <cbridgha> |
| Status: | CLOSED DUPLICATE | QA Contact: | Chuck Bridgham <cbridgha> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | bokowski, kaloyan |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | ProjectStructure | ||
|
Description
Brian Dillon
Moving to Web Tools for comment - can you solve this by referencing ProjC and ProjD from ProjA? Note that Eclipse does not support nesting of projects, but projects may reference other projects to have them included in the build etc., and supports linked folders to have the same files appear in multiple projects. See bug 43536. We can't support nested projects. But better support for aggregation of multiple project folders could be easier.... Set to enhancement Hi,
If sub-projects can't be added is there some way of creating compile depdencies so that changes in one project (ProjC) are reflected in the running app of another (ProjectA). As I can see there are currently two possible workarounds;
Option 1:
* Use a Single Project with Sub directories i.e.
ProjectA
/
+- src/
| +- ProjC/
| | +- src/
| | | +- ...
| | +- resources/
| | +- ...
| | +- webapp/
| | +- ...
| +- ProjD/
| | +- src/
........
* Update ProjectA build path to inlcude source folders "ProjC/src" and "ProjD/src"
* Update the eclipse config file "org.eclipse.wst.common.component" to include the source;
<wb-resource deploy-path="/WEB-INF/classes" source-path="/ ProjC/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/ ProjD/src"/>
* Update the eclipse config file "org.eclipse.wst.common.component" to include the JSPs/XHTML
<wb-resource deploy-path="/" source-path="/projC/webapp"/>
<wb-resource deploy-path="/" source-path="/projD/webapp"/>
Issues:
1. Everything is contained within a single project => no real partitioning.
2. The config file "org.eclipse.wst.common.component" must be manually edited
Option 2:
Using 3 Separate Eclipse Projects: ProjectA, ProjC and ProjD
* Define path variables to point to ProjC and ProjD
* Link the source for ProjC and ProjD in ProjectA
* Create new 'link folders' for ProjC and ProjD resouces and JSP/XHTML
* Update the eclipse config file "org.eclipse.wst.common.component" to include the appropriate source and JSPs/XHTML
Issues:
1. The source and resources must be linked separately to the 'main' project.
2. The config file "org.eclipse.wst.common.component" must be manually edited
Is there a recommended workaround ? What would be nice is some way of pointing to a 'dependant' project to get the source/rsource/JSP links set up similar to Option 2 above.
Thanks,
Brian
Assigning to Chuck for evaluation |