aboutcode-org / aboutcode-org/scancode-toolkit

Add/improve support for OSGI bundle metadata from bnd

Đang mở
#3,295 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
good first issue new feature package scan package-formats
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

Bundle-Name, Bundle-SymbolicName and Bundle-Version would be a minimum.
There are also some of these already support in the Java MANIFEST code in https://github.com/nexB/scancode-toolkit/blob/95a5f3303543293aba33bf5b0d88263e042775d4/src/packagedcode/jar_manifest.py#L98

Some examples:
- in a bnd file, likely the input to Aqute bundler? https://github.com/StrasbourgEurometropole/Strasbourg-Next/blob/e5ce3383c2dd4f33f1fc5078851f0d52a170a2ab/modules/interest-viewer-web/bnd.bnd#L1 or https://github.com/vaadin/open/blob/0dc39d6b016b7844710916207ca1e1a3b5a9d330/bnd.bnd
- In a manifest likely the place for runtime/binaries artifacts https://github.com/menucha-de/App.AssignmentControl/blob/47d3ce7d9f6b8c47622c7e81c9e16a1407a47140/src/main/resources/MANIFEST.MF
- with license https://github.com/bjhargrave/transformer-bnd-analyzer-demo/blob/a7b7d1930f0a08eac3395c4a2c2185f9fa235699/cnf/build.bnd#L10
- Some data may live in OSGI-INF as in https://github.com/peramic/App.RFIDHardwareMonitor/blob/75635b266d60394e831f96aab3f023bca9452b5e/src/main/resources/classpath/OSGI-INF/havis.custom.harting.rfidhardwaremonitor.properties
- Another example with bnd and MANIFEST and POM:
- https://github.com/vaadin/open/blob/0dc39d6b016b7844710916207ca1e1a3b5a9d330/bnd.bnd
- https://repo1.maven.org/maven2/com/vaadin/open/8.5.0/open-8.5.0.pom
- https://repo1.maven.org/maven2/com/vaadin/open/8.5.0/open-8.5.0.jar

```
Manifest-Version: 1.0
Created-By: 11.0.14.1 (Eclipse Adoptium)
Built-By: root
Build-Jdk: 11.0.14.1
Implementation-Title: Open stuff like URLs, files, executables. Cross-pl
atform
Implementation-Version: 8.5.0
Implementation-Vendor-Id: com.vaadin
Implementation-URL: http://vaadin.com/open
Bnd-LastModified: 1674112354024
Bundle-Description: Java port of https://github.com/sindresorhus/open
Bundle-Developers: vaadin;organization=Vaadin;organizationUrl="http://va
adin.com"
Bundle-DocURL: http://vaadin.com/open
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0
Bundle-ManifestVersion: 2
Bundle-Name: Vaadin Open
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-SCM: url="https://github.com/vaadin/maven-integration/open",conne
ction="https://github.com/vaadin/maven-integration.git/open",developer-
connection="https://github.com/vaadin/maven-integration.git/open",tag=H
EAD
Bundle-SymbolicName: com.vaadin.open
Bundle-Version: 8.5.0
Export-Package: com.vaadin.open;version="8.5.0"
Import-Package: javax.management,org.apache.commons.io;version="[1.4,2)"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Tool: Bnd-5.2.0.202010142003
```
Note the import and export package dependency declarations.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.