You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by al...@apache.org on 2021/08/05 12:25:26 UTC

[camel-quarkus] branch main updated: xchange: explicitly register the CurrencyNames bundle at build time #2983

This is an automated email from the ASF dual-hosted git repository.

aldettinger pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new e7b01ea  xchange: explicitly register the CurrencyNames bundle at build time #2983
e7b01ea is described below

commit e7b01ea7e1a2c54caed52eb0499fc0ddde10ad08
Author: aldettinger <al...@gmail.com>
AuthorDate: Thu Aug 5 10:45:15 2021 +0200

    xchange: explicitly register the CurrencyNames bundle at build time #2983
---
 .../quarkus/component/xchange/deployment/XchangeProcessor.java      | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/extensions/xchange/deployment/src/main/java/org/apache/camel/quarkus/component/xchange/deployment/XchangeProcessor.java b/extensions/xchange/deployment/src/main/java/org/apache/camel/quarkus/component/xchange/deployment/XchangeProcessor.java
index 005e407..09ab5d1 100644
--- a/extensions/xchange/deployment/src/main/java/org/apache/camel/quarkus/component/xchange/deployment/XchangeProcessor.java
+++ b/extensions/xchange/deployment/src/main/java/org/apache/camel/quarkus/component/xchange/deployment/XchangeProcessor.java
@@ -30,6 +30,7 @@ import io.quarkus.deployment.builditem.FeatureBuildItem;
 import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
 import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem;
@@ -136,4 +137,9 @@ class XchangeProcessor {
                 .forEach(runtimeInitializedClasses::produce);
     }
 
+    @BuildStep
+    void registerResourceBundles(BuildProducer<NativeImageResourceBundleBuildItem> producer) {
+        producer.produce(new NativeImageResourceBundleBuildItem("sun.util.resources.CurrencyNames"));
+    }
+
 }