| Summary: | [refactoring] Share classes between tycho-embedder-api and tycho.p2.resolver.facade | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Tobias Oberlies <t-oberlies> |
| Component: | Tycho | Assignee: | Tobias Oberlies <t-oberlies> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tobias Oberlies
The first step of this is done: the common ancestor module now exists as org.eclipse.tycho.embedder.facade. Making real use of that facade is still pending, but this is waiting for the discussions on bug 364134. The name "embedder.facade" doesn't really match, because that module is not a facade: there is nothing behind it. The module just contains a bunch of classes shared between the OSGi and Maven class loader. Therefore I currently prefer org.eclipse.tycho.embedder.shared. The other "org.eclipse.tycho.*.facade" modules should then also be renamed to ".shared" for consistency. Packages which really serve as facade, e.g. org.eclipse.tycho.p2.tools.director.facade could obviously keep their name ending in ".facade". "embedder.facade" has been renamed to "embedder.shared" with commit feda050. The package org.eclipse.tycho exists in both org.eclipse.tycho.embedder.shared and tycho-embedder-api - this still needs to be fixed. (In reply to comment #3) > The package org.eclipse.tycho exists in both org.eclipse.tycho.embedder.shared > and tycho-embedder-api - this still needs to be fixed. Fixed with commit c722606 Sharing classes between the tycho-embedder-api and the other *.shared bundles is possible. This allows for example to get rid of redundant constant definitions in P2Resolver (see 3b2f544). Further refactorings may follow, but not as part of this bug. |