Konrad Windszus created SLING-9033:
--------------------------------------

             Summary: Never export conditional packages
                 Key: SLING-9033
                 URL: https://issues.apache.org/jira/browse/SLING-9033
             Project: Sling
          Issue Type: Improvement
          Components: General
    Affects Versions: Bundle Parent 36
            Reporter: Konrad Windszus
            Assignee: Konrad Windszus
             Fix For: Bundle Parent 37


By default all versioned packages are exported no matter whether they are 
conditionalpackages 
(https://bnd.bndtools.org/instructions/conditionalpackage.html) or not. As 
conditionalpackages should never be exported the according instruction should 
be modified to
{code}
-exportcontents: ${removeall;${packages;VERSIONED};${packages;CONDITIONAL}}
{code}

This says to export all versioned packages except those which are conditionally 
added
(https://github.com/bndtools/bnd/issues/3721#issuecomment-579026778)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to