Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327538

Summary: Allow plans to refer to artifacts by file URI
Product: [RT] Virgo Reporter: Glyn Normington <glyn.normington>
Component: unknownAssignee: Glyn Normington <glyn.normington>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse, matt.fellows
Version: unspecifiedFlags: glyn.normington: documentation+
Target Milestone: 3.5.0.M03   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 311155    
Bug Blocks: 368724, 327204, 327566, 329487    

Description Glyn Normington CLA 2010-10-12 07:07:45 EDT
This involves a change to the plan schema and so pre-req's the move of the schema to eclipse.org.
Comment 1 Matt Fellows CLA 2011-03-01 06:54:39 EST
I second the need for this enhancement.

The ability to specify a URI would allow users to update artifacts of a plan at runtime, which seems like a missing feature of the plan.

Additionally, to cater for this feature it might be necessary to address the following:
* Ability to explicitly specify an artifact loading strategy in the plan - i.e. if a version range is provided, go for the latest\oldest version or by ID in the system (i.e. the order it was first added)
* To avoid the overhead of a watch directory for runtime changes, perhaps implementing a lazy-load solution on a .plan deployment to /pickup or a way to trigger a one-time 'watch' on the local repository that allows for a new version of a bundle to be added at runtime could be introduced.

Cheers,
Matt
Comment 2 Glyn Normington CLA 2011-03-01 07:05:45 EST
(In reply to comment #1)
> I second the need for this enhancement.

Thanks!

[...]

> * To avoid the overhead of a watch directory for runtime changes, perhaps
> implementing a lazy-load solution on a .plan deployment to /pickup or a way to
> trigger a one-time 'watch' on the local repository that allows for a new
> version of a bundle to be added at runtime could be introduced.

Compare the triggering of a 'watch' which is likely to be necessary to solve bug 337846.

> 
> Cheers,
> Matt
Comment 3 Glyn Normington CLA 2012-01-16 11:28:55 EST
Documentation in commit ed5ae019c00405fc75e4da04563ff477a69a83de. This will be pushed after the implementation is pushed so as not to mislead users of milestones.
Comment 4 Glyn Normington CLA 2012-01-20 09:23:31 EST
Implemented in kernel commits (tagged with this bug number) culminating in the merge 893696e6c29b3fc741315bad61793d43b8e43eca.

Documentation tweaked in commit 6b8b363b6d92ac472708fb146dfd0dc86eec8e2b.
Comment 5 Glyn Normington CLA 2012-02-01 10:33:07 EST
Note that the current implementation has two restrictions which are documented in the Programmer Guide. Only absolute "file:" URIs are supported. Artefacts referenced by URIs in a plan need to be available when the plan is deployed and when Virgo restarts.