|
Re: Plans that reference to shared artifacts? [message #666592 is a reply to message #666461] |
Thu, 21 April 2011 08:44 |
Glyn Normington Messages: 1222 Registered: July 2009 |
Senior Member |
|
|
The current design is that plans form a "forest" of trees rather than a DAG. In other words, no two plans may refer to the same artifact.
At some point in the future, I'd love to remove that restriction, but it will be quite a meaty feature as it will involve correctly managing the state of "shared" artifacts as well as dealing with all the combinations of scoped/unscoped/atomic/non-atomic across multiple parents. This is the kind of thing that tends to stay on the back-burner, I'm afraid.
So there are two approaches to working round the restriction when you want to share a bundle between two plans.
The first, which may not apply in your scenario, is to let the bundle be auto-provisioned by virtue of bundles in the other plans having package dependencies on the "shared" bundle.
The second is a bit brutal, but works well. Add the "shared" bundle, or any other "shared" artifact for that matter, to the initialArtifacts property of the user region properties file so that it is deployed before the plans that need it.
If you feel that it is important to lift the restriction eventually, kindly raise an enhancement bugzilla. Maybe someone who fancies a challenge will then step forward in due course...
|
|
|
Re: Plans that reference to shared artifacts? [message #667036 is a reply to message #666592] |
Tue, 26 April 2011 10:25 |
Jean-Pierre Bergamin Messages: 51 Registered: March 2011 Location: Zürich, CH |
Member |
|
|
Am 21.04.2011 10:44, schrieb Glyn Normington:
> The current design is that plans form a "forest" of trees rather than a
> DAG. In other words, no two plans may refer to the same artifact.
>
> At some point in the future, I'd love to remove that restriction, but it
> will be quite a meaty feature as it will involve correctly managing the
> state of "shared" artifacts as well as dealing with all the combinations
> of scoped/unscoped/atomic/non-atomic across multiple parents. This is
> the kind of thing that tends to stay on the back-burner, I'm afraid.
>
> So there are two approaches to working round the restriction when you
> want to share a bundle between two plans.
>
> The first, which may not apply in your scenario, is to let the bundle be
> auto-provisioned by virtue of bundles in the other plans having package
> dependencies on the "shared" bundle.
>
> The second is a bit brutal, but works well. Add the "shared" bundle, or
> any other "shared" artifact for that matter, to the initialArtifacts
> property of the user region properties file so that it is deployed
> before the plans that need it.
>
> If you feel that it is important to lift the restriction eventually,
> kindly raise an enhancement bugzilla. Maybe someone who fancies a
> challenge will then step forward in due course...
Thank you for the explanation.
We will create different plan files for the different "configurations"
and include the "shared" bundles in those plan files. We later may
configure the shared bundles to be loaded with the initialArtifacts
property, so there is no urgent need for plans to support shared bundles.
Best regards,
James
|
|
|
|
Powered by
FUDForum. Page generated in 0.04993 seconds