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

Tobias Bocanegra commented on JCRVLT-185:
-----------------------------------------

true, I think the javadoc is wrong here. the register flag was intended but not 
implemented, since we don't have the use case for normal packages yet.

you can import a package by directly using the Importer. eg:

{noformat}
Archive a = new ZipStreamArchive(...);
Importer imp = new Importer();
imp.run(archive, session.getRootNode());
{noformat}


> JcrPackageManagerImpl#extract always stores a package in the repository
> -----------------------------------------------------------------------
>
>                 Key: JCRVLT-185
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-185
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>    Affects Versions: 3.1.40
>            Reporter: Timothee Maret
>             Fix For: 3.1.42
>
>
> According to the API for the {{JcrPackageManagerImpl#extract}} method, it 
> seems there should be a way to avoid storing the package when extracting a 
> package.
> Currently, a package without content is always stored.
> The API mentions the {{registerPackage}} flag to avoid storing package, but 
> it seems the implementation is missing.
> Not storing a package at all is desirable for Sling Content Distribution.
> cc [~tripod]
> [0] 
> https://github.com/apache/jackrabbit-filevault/blob/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/JcrPackageManager.java#L226-L252
>  



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

Reply via email to