[
https://issues.apache.org/jira/browse/JCRVLT-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074321#comment-16074321
]
Tobias Bocanegra edited comment on JCRVLT-188 at 7/6/17 6:52 AM:
-----------------------------------------------------------------
fair enough - but I don't want to add more magic into the package manager.
maybe an utility class instead?
{code}
public final class PackageUtils {
public boolean exists(JcrPackageManager, Archive)
}
{code}
-btw: you can also just do: {{JcrPackageManager.extract(Archive, false)}} which
will fail if the package already exists. (I just noticed that the date check is
missing there....)-
(of course, the replace only checks for existence, but not for the created
date. so not useful here)
was (Author: tripod):
fair enough - but I don't want to add more magic into the package manager.
maybe an utility class instead?
{code}
public final class PackageUtils {
public boolean exists(JcrPackageManager, Archive)
}
{code}
btw: you can also just do: {{JcrPackageManager.extract(Archive, false)}} which
will fail if the package already exists. (I just noticed that the date check is
missing there....)
> Ensure that hollow packages still provide PackageProperties and
> JcrPackageDefinition.
> -------------------------------------------------------------------------------------
>
> Key: JCRVLT-188
> URL: https://issues.apache.org/jira/browse/JCRVLT-188
> Project: Jackrabbit FileVault
> Issue Type: Improvement
> Components: Packaging
> Affects Versions: 3.1.40
> Reporter: Konrad Windszus
> Assignee: Tobias Bocanegra
>
> Currently for hollow packages (JCRVLT-50) only the following meta information
> is stored in the repository:
> * name
> * version
> * group
> * lastUnpacked
> * lastUnpackedBy
> * lastModified
> * lastModifiedBy
> What is missing is a {{jcr:created}} date which would allow to check if a
> to-be extracted hollow package has already been extracted previously in the
> repository.
> I am interested to prevent duplicate installations of the same hollow
> packages in the system and only the {{jcr:created}} would allow to achieve
> that (compare with JCRVLT-155).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)