From 362b19472572e6b0619e4e971cd3c1bf3528232c Mon Sep 17 00:00:00 2001 From: Loic Ottet Date: Thu, 13 Jun 2024 12:21:30 +0200 Subject: [PATCH] Warn about deprecated config files in META-INF directories --- .../com/oracle/svm/core/configure/ConfigurationFiles.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/configure/ConfigurationFiles.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/configure/ConfigurationFiles.java index 6512bf30a440..bffb930e65c8 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/configure/ConfigurationFiles.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/configure/ConfigurationFiles.java @@ -34,9 +34,9 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import com.oracle.svm.core.option.AccumulatingLocatableMultiOptionValue; import com.oracle.svm.core.option.BundleMember; import com.oracle.svm.core.option.HostedOptionKey; -import com.oracle.svm.core.option.AccumulatingLocatableMultiOptionValue; import com.oracle.svm.core.option.OptionMigrationMessage; import com.oracle.svm.core.util.UserError; @@ -75,7 +75,9 @@ public static final class Options { @BundleMember(role = BundleMember.Role.Input)// public static final HostedOptionKey DynamicProxyConfigurationFiles = new HostedOptionKey<>( AccumulatingLocatableMultiOptionValue.Paths.buildWithCommaDelimiter()); - @Option(help = "Resources describing program elements to be made available for reflection (see ProxyConfigurationFiles).", type = OptionType.User, deprecated = true)// + @Option(help = "Resources describing program elements to be made available for reflection (see ProxyConfigurationFiles).", type = OptionType.User, deprecated = true, // + deprecationMessage = "This can be caused by a proxy-config.json file in your META-INF directory. " + + "Consider including proxy configuration in the reflection section of reachability-metadata.md instead.")// public static final HostedOptionKey DynamicProxyConfigurationResources = new HostedOptionKey<>( AccumulatingLocatableMultiOptionValue.Strings.buildWithCommaDelimiter());