Skip to content

Artifact builds and OSGi Fragment Bundles#12

Open
nickgaray wants to merge 6 commits intomainfrom
artifact_builds
Open

Artifact builds and OSGi Fragment Bundles#12
nickgaray wants to merge 6 commits intomainfrom
artifact_builds

Conversation

@nickgaray
Copy link
Copy Markdown
Contributor

Currently all bundles are being registered and started. We need to allow fragment bundles to be registered but this type of bundle does not require activation as it contributes functionality to a host bundle

This is an example of an osgi closure in a module that contributes custom forms to sensorhub-web-ui-core

osgi {
    manifest {
        attributes('Bundle-Vendor': 'Botts Innovative Research, Inc.')
        attributes('Bundle-SymbolicName': 'com.botts.ui.datafeed')
        attributes('Bundle-Version': version)

        // THIS is the important part:
        attributes('Fragment-Host': 'org.sensorhub.sensorhub-webui-core')

        attributes('-dsannotations': 'false')
        attributes('Export-Package': '')
        attributes('Import-Package': '*;resolution:=optional')
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant