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

jamesnetherton 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 65020378cd Register LegacyPDFStreamEngine for runtime initialization
65020378cd is described below

commit 65020378cd8efd27c36d3402d3029c0d4de3d5d6
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Tue Sep 20 10:39:05 2022 +0100

    Register LegacyPDFStreamEngine for runtime initialization
    
    Fixes #4109
---
 .../camel/quarkus/component/tika/deployment/TikaProcessor.java      | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/extensions/tika/deployment/src/main/java/org/apache/camel/quarkus/component/tika/deployment/TikaProcessor.java
 
b/extensions/tika/deployment/src/main/java/org/apache/camel/quarkus/component/tika/deployment/TikaProcessor.java
index d23440eda4..40d323a34f 100644
--- 
a/extensions/tika/deployment/src/main/java/org/apache/camel/quarkus/component/tika/deployment/TikaProcessor.java
+++ 
b/extensions/tika/deployment/src/main/java/org/apache/camel/quarkus/component/tika/deployment/TikaProcessor.java
@@ -21,6 +21,7 @@ import io.quarkus.deployment.annotations.BuildStep;
 import io.quarkus.deployment.annotations.ExecutionTime;
 import io.quarkus.deployment.annotations.Record;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
+import 
io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
 import org.apache.camel.component.tika.TikaComponent;
 import org.apache.camel.quarkus.component.tika.TikaRecorder;
 import org.apache.camel.quarkus.core.deployment.spi.CamelRuntimeBeanBuildItem;
@@ -55,4 +56,9 @@ class TikaProcessor {
                 TikaComponent.class.getName(),
                 recorder.createTikaComponent(beanContainer.getValue()));
     }
+
+    @BuildStep
+    RuntimeInitializedClassBuildItem runtimeInitializedClasses() {
+        return new 
RuntimeInitializedClassBuildItem("org.apache.pdfbox.text.LegacyPDFStreamEngine");
+    }
 }

Reply via email to