RFR: 8362598: [macos] Add tests for custom info plist files
Alexander Matveev
almatvee at openjdk.org
Mon Sep 29 23:52:01 UTC 2025
On Fri, 26 Sep 2025 11:41:44 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
>> - Added test for custom info plist to cover app image including embedded runtime and runtime installer.
>> - Fixed bug in `writePList`. It was missing `writeStartDocument()/writeEndDocument()` and `DOCTYPE` should be full xml string.
>
> test/jdk/tools/jpackage/macosx/CustomInfoPListTest.java line 70:
>
>> 68:
>> 69: // We do not need full Info.plist for testing
>> 70: private static String getInfoPListXML(String bundleName) {
>
> Use jdk.jpackage.internal.util.XmlUtils.createXml() helper to create xml file. It will format the output xml and will also eliminate the need for the patch in PListWriter class.
Should I remove `writePList()` since it is broken and it is not used?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27509#discussion_r2389521050
More information about the core-libs-dev
mailing list