[
https://issues.apache.org/jira/browse/JCRVLT-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606436#comment-16606436
]
Dominik Süß commented on JCRVLT-319:
------------------------------------
[~tripod] - minor adjustments & added test for the stacked executionPlan
scenario. This reflects the usage scenario where plans need to be fully
calculatable without having to execute the plan. I therefore added an option to
export the calculated PackageIds and inject those in a secondary plan as
"satisfied" dependencies that the consumer takes care of. The test also
validates that if you try to execute the plan it will fail correctly.
> Allow building of stacked ExecutionPlans
> ----------------------------------------
>
> Key: JCRVLT-319
> URL: https://issues.apache.org/jira/browse/JCRVLT-319
> Project: Jackrabbit FileVault
> Issue Type: Improvement
> Components: Packaging
> Reporter: Dominik Süß
> Assignee: Dominik Süß
> Priority: Major
>
> The implementation of ExecutionPlanBuilder currently does not provide an
> option to "pre-satisfy" dependencies when building but always checks for the
> install state.
> This comes with the following downsides:
> * it is not possible to prebuild stacking execution plans that would be
> satisfied/valid when executed in sequence - as soon as the validation is
> being performed the second plan automatically spawns install tasks for the
> packages missing
> * The tasks for missing dependencies are automatically created with
> PackageTask.Type.INSTALL even if all other tasks are EXTRACT tasks.
> This improvement is about adding some kind of DependencyValidationHandler
> which allows controlling how to handle a "missing" dependency (default
> behavior right now is to check if already installed and add an install task
> if missing)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)