You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2022/01/19 12:23:40 UTC
[sling-org-apache-sling-feature-extension-apiregions] branch master updated: SLING-11076 : Remove attributes from bsn
This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-extension-apiregions.git
The following commit(s) were added to refs/heads/master by this push:
new 6dbd4b0 SLING-11076 : Remove attributes from bsn
6dbd4b0 is described below
commit 6dbd4b08a24f370aff1a7635326acf8c06c2621f
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jan 19 13:23:32 2022 +0100
SLING-11076 : Remove attributes from bsn
---
.../feature/extension/apiregions/launcher/LauncherProperties.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/sling/feature/extension/apiregions/launcher/LauncherProperties.java b/src/main/java/org/apache/sling/feature/extension/apiregions/launcher/LauncherProperties.java
index 047ac0a..e4d1f41 100644
--- a/src/main/java/org/apache/sling/feature/extension/apiregions/launcher/LauncherProperties.java
+++ b/src/main/java/org/apache/sling/feature/extension/apiregions/launcher/LauncherProperties.java
@@ -60,6 +60,10 @@ public class LauncherProperties
Attributes manifest = jarFile.getManifest().getMainAttributes();
bsn = manifest.getValue(Constants.BUNDLE_SYMBOLICNAME);
if (bsn != null) {
+ final int idx = bsn.indexOf(';');
+ if (idx != -1) {
+ bsn = bsn.substring(0, idx);
+ }
version = manifest.getValue(Constants.BUNDLE_VERSION);
}
} catch (IOException ex) {