| Summary: | Allows PARs to contain plans | ||
|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | Wolfgang Schell <ws> |
| Component: | runtime | Assignee: | Project Inbox <virgo-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | glyn.normington, pascal |
| Version: | 2.1.0.RELEASE | ||
| Target Milestone: | 3.0.0.M04 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 351871 | ||
|
Description
Wolfgang Schell
Interesting and shouldn't be too hard to implement as described: making a plan a valid artifact inside a PAR. Implementation notes: 1. There are some restrictions in ParPlanInstallArtifact which limit the contents of PARs to be bundles and configurations. The first step in implementing this would be to allow plans too. 2. PlanResolver converts a single node containing just a plan into a tree of install artifacts consisting of the single input node as the root and the plan contents as its children. This would need tweaking to ensure it doesn't skip partially resolved plans (i.e. PAR trees with unresolved plan subtrees). 3. After that, it should pretty much work, although bugs could clearly come out of the woodwork as this is a new use case. So suitable integration test should be written and then tested/debugged. Implemented. See ParDeploymentTests.deployParContainingPlan which deploys org.eclipse.virgo.kernel.deployer.test/src/test/resources/plan-in-par/ParContainingPlan.par. Note that this implementation does not relax the restriction that scopes cannot be nested. Since a PAR is always scoped, a PAR containing a scoped plan will fail to deploy. Similarly if a scoped plan is indirectly referred to by a plan in a PAR, the PAR will fail to deploy. Any artifacts referenced by a plan inside a PAR must reside in the repository as usual. In particular, a plan inside a PAR may not refer to artifacts supplied in the PAR. If there is a good use case for this, then a separate enhancement bug should be raised. Great, thanks, Glyn! Are there any upcoming builds (milestones, ...), were I can check it out without building the whole thing myself? Hi Wolfgang If you are happy to try a kernel build, take one from Hudson e.g. [1]. Otherwise wait for milestone 4 which should ship in about 3-4 weeks. [1] https://hudson.eclipse.org/hudson/view/Virgo/job/virgo.kernel.snapshot/lastSuccessfulBuild/artifact/build-kernel/target/artifacts/virgo-kernel-3.0.0.CI-2011-03-21_20-52-50.zip |