[ 
https://issues.apache.org/jira/browse/FELIX-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tuomas Kiviaho updated FELIX-3973:
----------------------------------

    Attachment: FELIX-3973.diff

Here's a patch that fits everything to addLocalPackages by using functionality 
provided by BND itself.

Downsize is that there's still a bit of reflection involved due to 
https://github.com/bndtools/bnd/issues/319
                
> Exclusion from {local-packages} doesn't work anymore
> ----------------------------------------------------
>
>                 Key: FELIX-3973
>                 URL: https://issues.apache.org/jira/browse/FELIX-3973
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>         Environment: bnd 2.0.0.x
>            Reporter: Tuomas Kiviaho
>         Attachments: FELIX-3973.diff
>
>
> I've been using Export-Package: !org.apache.jsp.*, {local-packages} to 
> exclude jspc compilers output, but with BND 2.0.0 this stopped working 
> completely (although until now I was getting a bunch of warnings).
> BND currently gives a second chance to non matching packages. This feature 
> will rended !org.apache.jsp.* useless since {local-packages} is expanded to 
> clause that contains org.apache.jsp prefixed packages.
> A fix would be to pre-filter the {local-packages} against 
> Export/Private-Package clauses

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to