You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Benson Margulies <be...@basistech.com> on 2014/12/23 04:08:18 UTC

Suppressing unwanted system packages

So, buried in some code of mine is a dev tool. I could move it to another
jar. For now, I'd like to find some way to prevent it from producing these
Import-Package elements

javax.swing.text,javax.xml.stream


Can I put some ! items into Import-Package without disturbing the plugin's
automatic generation of the rest?

Re: Suppressing unwanted system packages

Posted by Raymond Auge <ra...@liferay.com>.
On Dec 22, 2014 10:08 PM, "Benson Margulies" <be...@basistech.com> wrote:
>
> So, buried in some code of mine is a dev tool. I could move it to another
> jar. For now, I'd like to find some way to prevent it from producing these
> Import-Package elements
>
> javax.swing.text,javax.xml.stream
>
>
> Can I put some ! items into Import-Package without disturbing the plugin's
> automatic generation of the rest?

Yup, just be as specific as you can, and don't forget to finish with the
wildcard (which is the behavior when using no Import-Package statement at
all):

!javax.swing.text,!javax.xml.stream,*

- Ray