Skip to content

Commit

Permalink
Specify the module name when registering jaxp resource bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Sep 30, 2022
1 parent 1235d48 commit 4beeaf3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkus.jaxp.deployment;

import java.util.function.Consumer;
import java.util.stream.Stream;

import io.quarkus.deployment.annotations.BuildProducer;
Expand Down Expand Up @@ -30,15 +31,16 @@ void reflectiveClasses(BuildProducer<ReflectiveClassBuildItem> reflectiveClass)

@BuildStep
void resourceBundles(BuildProducer<NativeImageResourceBundleBuildItem> resourceBundle) {
Consumer<String> resourceBundleItemProducer = bundleName -> resourceBundle
.produce(new NativeImageResourceBundleBuildItem(bundleName, "java.xml"));
Stream.of(
"com.sun.org.apache.xml.internal.serializer.utils.SerializerMessages",
"com.sun.org.apache.xml.internal.res.XMLErrorResources",
"com.sun.org.apache.xerces.internal.impl.msg.SAXMessages",
"com.sun.org.apache.xerces.internal.impl.msg.XMLMessages",
"com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages",
"com.sun.org.apache.xerces.internal.impl.xpath.regex.message")
.map(NativeImageResourceBundleBuildItem::new)
.forEach(resourceBundle::produce);
.forEach(resourceBundleItemProducer);
}

@BuildStep
Expand Down

0 comments on commit 4beeaf3

Please sign in to comment.