Light, fluffy, and always free - The AWS Local Emulator alternative
fix: register Xerces XML resource bundles for native image (#293) (#296)
Hector Ventura0bad9338f926
diff --git a/src/main/java/io/github/hectorvent/floci/core/common/XmlParser.java b/src/main/java/io/github/hectorvent/floci/core/common/XmlParser.javaindex 5ed1fa2881..5e8cf69f88 100644--- a/src/main/java/io/github/hectorvent/floci/core/common/XmlParser.java+++ b/src/main/java/io/github/hectorvent/floci/core/common/XmlParser.java@@ -91,7 +91,7 @@ public final class XmlParser {}}r.close();- } catch (XMLStreamException ignored) {}+ } catch (Exception ignored) {}return result;}@@ -160,7 +160,7 @@ public final class XmlParser {}}r.close();- } catch (XMLStreamException ignored) {}+ } catch (Exception ignored) {}return result;}@@ -206,7 +206,7 @@ public final class XmlParser {}}r.close();- } catch (XMLStreamException ignored) {}+ } catch (Exception ignored) {}return result;}@@ -256,7 +256,7 @@ public final class XmlParser {}}r.close();- } catch (XMLStreamException ignored) {}+ } catch (Exception ignored) {}return result;}@@ -312,7 +312,7 @@ public final class XmlParser {}}r.close();- } catch (XMLStreamException ignored) {}+ } catch (Exception ignored) {}return result;}}diff --git a/src/main/resources/META-INF/native-image/resource-config.json b/src/main/resources/META-INF/native-image/resource-config.jsonnew file mode 100644index 0000000000..ecde45ea96--- /dev/null+++ b/src/main/resources/META-INF/native-image/resource-config.json@@ -0,0 +1,7 @@+{+ "bundles": [+ {"name": "com.sun.org.apache.xerces.internal.impl.msg.XMLMessages"},+ {"name": "com.sun.org.apache.xerces.internal.impl.msg.XMLSerializerMessages"},+ {"name": "com.sun.org.apache.xerces.internal.impl.xpath.regex.message"}+ ]+}