[ 
https://issues.apache.org/jira/browse/JCRVLT-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083302#comment-16083302
 ] 

Tobias Bocanegra edited comment on JCRVLT-33 at 7/12/17 1:45 AM:
-----------------------------------------------------------------

this should go in favor of a new pacakge type: Content package, which doesn't 
mix content and sub-packages. 
it could be a simple zip of packages with a descriptor file, or embedded in the 
manifest.

eg:

{noformat}
$ jar tf my-container.zip
META-INF/MANIFEST.MF
META-INF/vault/properties.xml
model.txt
sub-package-a-1.0.zip
sub-package-b-1.0.zip
test-content.zip
...
$ cat model.txt
[artifacts]
mygroup:sub-package-a:1.0
mygroup:sub-package-b:1.0

[artifacts, runmode=test]
mygroup:test-content:1.0

$ unzip -p my-container.zip META-INF/MANIFEST.MF
Manifest-Version: 1.0
Content-Package-Dependencies: ...
Content-Package-Type: container
Content-Package-Description: Contains the deployment code
Content-Package-Id: mypackages:my-container:1.0

Name: sub-package-a-1.0.zip
ContentPackage-Id: mygroup:sub-package-a:1.0
Content-Package-Type: app

Name: sub-package-b-1.0.zip
ContentPackage-Id: mygroup:sub-package-b:1.0
Content-Package-Type: app
X-Sling-RunModes: test
{noformat}

/cc [~cziegeler]



was (Author: tripod):
this should go in favor of a new pacakge type: Content package, which doesn't 
mix content and sub-packages. 
it could be a simple zip of packages with a descriptor file, or embedded in the 
manifest.

eg:

{noformat}
$ jar tf my-container.zip
META-INF/MANIFEST.MF
META-INF/vault/properties.xml
model.txt
sub-package-a-1.0.zip
sub-package-b-1.0.zip
test-content.zip
...
$ cat model.txt
[artifacts]
mygroup:sub-package-a:1.0
mygroup:sub-package-b:1.0

[artifacts, runmode=test]
mygroup:test-content:1.0

$ unzip -p my-container.zip META-INF/MANIFEST.MF
Manifest-Version: 1.0
Content-Package-Dependencies: ...
Content-Package-Type: container
Content-Package-Description: Contains the deployment code
Content-Package-Id: mypackages:my-container:1.0

Name: sub-package-a-1.0.zip
ContentPackage-Id: mygroup:sub-package-a:1.0
Content-Package-Type: app

Name: sub-package-b-1.0.zip
ContentPackage-Id: mygroup:sub-package-b:1.0
Content-Package-Type: app
X-Sling-RunModes: test
{noformat}



> Allow support for subpackages outside of the normal content
> -----------------------------------------------------------
>
>                 Key: JCRVLT-33
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-33
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 3.0
>            Reporter: Tobias Bocanegra
>
> the current implementation can provide subpackages are part of the normal
> package content. this has some drawbacks, such as building a package with 
> subpackages includes the sub-pakcages state. also installing the outside 
> package has less control of the sub-package handling.
> suggest to support sub packages residing in {{META-INF/vault/subpackages}}



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

Reply via email to