You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2017/09/29 04:42:00 UTC

[jira] [Resolved] (JCRVLT-190) Provide mechanism to install several packages at once

     [ https://issues.apache.org/jira/browse/JCRVLT-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra resolved JCRVLT-190.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.42

this is now possible with the new https://svn.apache.org/repos/asf/jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/ExecutionPlanBuilder.java

> Provide mechanism to install several packages at once
> -----------------------------------------------------
>
>                 Key: JCRVLT-190
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-190
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Tobias Bocanegra
>             Fix For: 3.1.42
>
>
> it should be possible to install several packages at once. the package manager has to ensure the correct installation order based on dependency resolution. the installation operation should be divided into a prepare and execute phase. the preparation phase will generate a _InstallationPlan_ which is serializable. The execution phase will use the _InstallationPlan_ and operate on the packages accordingly. the separation of prepare and execute has the advantage, that the preparation can already validate the correctness and optimize the import order.
> draft proposal:
> {code}
> InstallationPlanBuilder PackageManager.getInstallationPlanBuilder();
> InstallationPlanBuilder.installPackage(PackageId);
> InstallationPlanBuilder.uninstallPackage(PackageId); // probably not needed right now
> InstallationPlan InstallationPlanBuilder.build();
> InstallationPlanBuilder.load(InputStream)
> InstallationPlan.save(InputStream)
> InstallationPan.validate();
> InstallationResult PackageManager.execute(InstallationPlan);
> {code}
>  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)