git: openjdk/leyden: hermetic-java-runtime: Co-locate the lib/psfont*.propertiesa.* with sun.print.PSPrinterJob in the modules image:
duke
duke at openjdk.org
Tue Mar 5 03:09:35 UTC 2024
Changeset: 4a3096c9
Author: Jiangli Zhou <jianglizhou at google.com>
Date: 2024-03-04 19:06:53 +0000
URL: https://git.openjdk.org/leyden/commit/4a3096c921f81672cf861e095b0ec2d1e44b1693
Co-locate the lib/psfont*.propertiesa.* with sun.print.PSPrinterJob in the modules image:
- Add capability in HermeticResourcesPlugin to write specified NATIVE_LIB entries in the jimage file (lib/modules). Same as the CONFIG entries, currently the original entries are still written into the output JDK runtime image. This capability is needed for packaging the hermetic psfont*.propertiesa.* as they are NATIVE_LIB entries.
- Bundle psfont.properties.ja as /java.desktop/sun/print/psfont.properties.ja and psfontj2d.properties as /java.desktop/sun/print/psfontj2d.properties in the JDK modules image.
- Change sun.print.PSPrinterJob to be able to load hermetic psfont*.propertiesa.* at runtime.
! make/Images.gmk
! src/java.desktop/share/classes/sun/print/PSPrinterJob.java
! src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/HermeticResourcesPlugin.java
More information about the leyden-dev
mailing list