From c9fb8b5f0a419383a69d2222bfd896a877d406da Mon Sep 17 00:00:00 2001 From: Gregor Lohaus Date: Fri, 29 May 2026 10:43:04 +0200 Subject: [PATCH] pty4j meta --- build.gradle | 1 + .../com.gregor/jprototerm/resource-config.json | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/main/resources/META-INF/native-image/com.gregor/jprototerm/resource-config.json diff --git a/build.gradle b/build.gradle index 3726e83..4f4672e 100644 --- a/build.gradle +++ b/build.gradle @@ -29,6 +29,7 @@ gluonfx { '-H:+UnlockExperimentalVMOptions', '-H:+ForeignAPISupport', '--enable-native-access=ALL-UNNAMED', + '-H:IncludeResources=com/sun/jna/.*|com/pty4j/native/.*|pty4j-native/.*', "-H:ConfigurationFileDirectories=${file('src/main/resources/META-INF/native-image/com.gregor/jprototerm').absolutePath}".toString() ] } diff --git a/src/main/resources/META-INF/native-image/com.gregor/jprototerm/resource-config.json b/src/main/resources/META-INF/native-image/com.gregor/jprototerm/resource-config.json new file mode 100644 index 0000000..0af655a --- /dev/null +++ b/src/main/resources/META-INF/native-image/com.gregor/jprototerm/resource-config.json @@ -0,0 +1,15 @@ +{ + "resources": { + "includes": [ + { + "pattern": "com/sun/jna/.*" + }, + { + "pattern": "com/pty4j/native/.*" + }, + { + "pattern": "pty4j-native/.*" + } + ] + } +}