[ 
https://issues.apache.org/jira/browse/FELIX-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579269#action_12579269
 ] 

Alan Cabrera commented on FELIX-336:
------------------------------------

I'm probably stating the obvious. One should be careful when fragments come 
into play.  For example, let's say that package r is private in host A.  
Fragment B, which also has a private package r, is attached to A.  A and B now 
share their contents of package r in their classpath, A.r > B.r.  There could 
always be something in A.r that B.r could use.  So, there's no way to a priori 
know what to remove from A.r without more knowledge of what fragments will get 
attached.

> Add support for optimization and obfuscation of bundle contents
> ---------------------------------------------------------------
>
>                 Key: FELIX-336
>                 URL: https://issues.apache.org/jira/browse/FELIX-336
>             Project: Felix
>          Issue Type: New Feature
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.2.0, maven-bundle-plugin-1.2.1, 
> maven-bundle-plugin-1.4.0
>            Reporter: Stuart McCulloch
>            Priority: Minor
>
> Suggestion from felix mailing list: it would be useful if the bundle-plugin 
> could optimize the contents of the bundle (ie. discard unnecessary internal 
> contents) and possibly perform some obfuscation. Ideally we wouldn't want to 
> discard classes from exported packages as that would lead to split-packages...
> Currently, it's possible to use the minijar plugin to optimize the bundle, 
> but this could discard exported classes as it has no OSGi knowledge.
> This issue will be used to collect together designs and opinions on baking 
> such support into the bundle-plugin compared to keeping it separate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to