Skip to content

Commit c73eb39

Browse files
Improved banner additional informations retrieving
1 parent 83d45ba commit c73eb39

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: src/main/java/org/burningwave/core/assembler/StaticComponentContainer.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static abstract class Key {
6565
private static final String GROUP_NAME_FOR_NAMED_ELEMENTS = "group-name-for-named-elements";
6666
private static final String BANNER_HIDE = "banner.hide";
6767
private static final String BANNER_FILE = "banner.file";
68-
private static final String BANNER_ADDITIONAL_INFORMATIONS_RETRIEVE_FROM_MANIFEST_FILE_WITH_IMPLEMENTATION_TITLE = "banner.additonal-informations.retrieve-from-manifest-file-with-implementation-title";
68+
private static final String BANNER_ADDITIONAL_INFORMATIONS_RETRIEVE_FROM_MANIFEST_FILE_OF = "banner.additonal-informations.retrieve-from-manifest-file-of";
6969
private static final String BANNER_ADDITIONAL_INFORMATIONS = "banner.additonal-informations";
7070
private static final String BACKGROUND_EXECUTOR_TASK_CREATION_TRACKING_ENABLED = "background-executor.task-creation-tracking.enabled";
7171
private static final String BACKGROUND_EXECUTOR_ALL_TASKS_MONITORING_ENABLED = "background-executor.all-tasks-monitoring.enabled";
@@ -152,7 +152,7 @@ public static abstract class Default {
152152
);
153153

154154
defaultValues.put(
155-
Key.BANNER_ADDITIONAL_INFORMATIONS_RETRIEVE_FROM_MANIFEST_FILE_WITH_IMPLEMENTATION_TITLE,
155+
Key.BANNER_ADDITIONAL_INFORMATIONS_RETRIEVE_FROM_MANIFEST_FILE_OF,
156156
"Burningwave Core"
157157
);
158158

@@ -598,12 +598,16 @@ private static void showBanner() throws IOException {
598598
try {
599599
String additionalInformationsManifestImplementationTitle = IterableObjectHelper.resolveStringValue(
600600
org.burningwave.core.iterable.IterableObjectHelper.ResolveConfig.forNamedKey(
601-
Configuration.Key.BANNER_ADDITIONAL_INFORMATIONS_RETRIEVE_FROM_MANIFEST_FILE_WITH_IMPLEMENTATION_TITLE
601+
Configuration.Key.BANNER_ADDITIONAL_INFORMATIONS_RETRIEVE_FROM_MANIFEST_FILE_OF
602602
).on(GlobalProperties)
603603
);
604604
Collection<Map<String, String>> manifestAsMapByMainAttributes = Resources.getManifestAsMapByMainAttributes(
605605
attributes -> {
606-
return additionalInformationsManifestImplementationTitle.equals(attributes.getValue("Bundle-Vendor") + " " + attributes.getValue("Bundle-Name"));
606+
return
607+
additionalInformationsManifestImplementationTitle.equals(attributes.getValue("Implementation-Title")) ||
608+
additionalInformationsManifestImplementationTitle.equals(
609+
attributes.getValue("Bundle-Vendor") + " " + attributes.getValue("Bundle-Name")
610+
);
607611
},
608612
Component.class.getClassLoader(),
609613
Thread.currentThread().getContextClassLoader()

0 commit comments

Comments
 (0)