[
https://issues.apache.org/jira/browse/JCRVLT-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077475#comment-16077475
]
Tobias Bocanegra commented on JCRVLT-194:
-----------------------------------------
since the rest of filevault still uses XML as default serialization, we should
stick to this one.
> add export/import serialization for execution / installation plan
> -----------------------------------------------------------------
>
> Key: JCRVLT-194
> URL: https://issues.apache.org/jira/browse/JCRVLT-194
> Project: Jackrabbit FileVault
> Issue Type: Sub-task
> Components: Packaging
> Reporter: Tobias Bocanegra
>
> possible formats:
> {code}
> <!-- xml execution plan -->
> <executionPlan>
> <tasks>
> <task cmd="install"
> packageid="org.apache.jackrabbit:test-package:1.0"/>
> <task cmd="install"
> packageId="org.apache.jackrabbit:some-library:5.6" importOptions="default" />
> <task cmd="install" packageId="other:package:1.0"
> importOptions="opt-1" />
> </tasks>
> <importOptions>
> <importOption id="default">
> <acHandling>update</acHandling>
> </importOption>
> </importOptions>
> </executionPlan>
> {code}
> {code}
> {
> "#": JSON Execution plan
> tasks: [
> {
> cmd: "install"
> id: "org.apache.jackrabbit:test-package:1.0"
> opts: "default"
> },
> {
> cmd: "install"
> id: "org.apache.jackrabbit:some-library:5.6"
> opts: "opt-1"
> }
> ],
> opts: {
> "default": {
> acHandling: "update"
> },
> "opt-1": {
> acHandling: "merge"
> }
> }
> }
> {code}
> {code}
> # yaml execution plan
> importOptions:
> - id: &default
> acHandling: merge
> - id: &opt-1
> acHandling: update
> tasks:
> - id: org.apache.jackrabbit:test-package:1.0
> cmd: install
> opts: *default
> - id: org.apache.jackrabbit:some-library:5.6
> cmd: install
> opts: #opt-1
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)