From ac93affa9cd468f437feea0365806f18cc5127a9 Mon Sep 17 00:00:00 2001 From: melloware Date: Sat, 30 Sep 2023 07:21:14 -0400 Subject: [PATCH] Fix Liquibase on Windows 11 --- .../SubstituteEnvironmentValueProvider.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/graal/SubstituteEnvironmentValueProvider.java diff --git a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/graal/SubstituteEnvironmentValueProvider.java b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/graal/SubstituteEnvironmentValueProvider.java new file mode 100644 index 0000000000000..2fae996137a87 --- /dev/null +++ b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/graal/SubstituteEnvironmentValueProvider.java @@ -0,0 +1,20 @@ +package io.quarkus.liquibase.runtime.graal; + +import java.util.Map; + +import com.oracle.svm.core.annotate.Delete; +import com.oracle.svm.core.annotate.Substitute; +import com.oracle.svm.core.annotate.TargetClass; + +@TargetClass(className = "liquibase.configuration.core.EnvironmentValueProvider") +final class SubstituteEnvironmentValueProvider { + + @Delete + private Map environment; + + @Substitute + protected Map getMap() { + return System.getenv(); + } + +} \ No newline at end of file