[
https://issues.apache.org/jira/browse/SLING-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Edelson resolved SLING-3682.
-----------------------------------
Resolution: Won't Fix
to your point, this is not backwards compatible. Export-Package doesn't
actually support wildcards; that is syntatic sugar provided by the
maven-bundle-plugin.
> Sling Models: ModelPackageBundleListener should support .* notation for
> scanning packages
> -----------------------------------------------------------------------------------------
>
> Key: SLING-3682
> URL: https://issues.apache.org/jira/browse/SLING-3682
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: Sling Models Implementation 1.0.2
> Reporter: Stefan Seifert
> Attachments: 140620_SLING-3682_slingmodels_starpackagesupport.patch
>
>
> the maven-bundle-plugin currently supports exporting single packages or
> packages including subpackages using {{.*}} notation, e.g. in the
> {{Export-Package}} instruction.
> this is currently not possible in sling models using the
> {{Sling-Model-Packages}} instruction. it always includes the subpackages. it
> would be more consistent to respect the {{.*}} as well.
> a patch is included that fixes this behavior.
> unfortunately this is not backward compatibly - but perhaps this is it worth
> any way for the sake of consistency?
--
This message was sent by Atlassian JIRA
(v6.2#6252)