You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2020/01/28 08:16:00 UTC

[jira] [Created] (SLING-9033) Never export conditional packages

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)