We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
classpath:
In Spring, one can (or rather have to) add classpath: scheme-prefix to a resource name to specify search of the resource in the ClassPath.
In SmallRyeConfig, "no prefix" means a ClassPath search.
Could you add additional/optional classpath: scheme-prefix support (AbstractLocationConfigSourceLoader#loadConfigSources):
AbstractLocationConfigSourceLoader#loadConfigSources
See also: #1101
~
protected List<ConfigSource> loadConfigSources(final String[] locations, final int ordinal, final ClassLoader classLoader) { if (locations == null || locations.length == 0) { return Collections.emptyList(); } final List<ConfigSource> configSources = new ArrayList<>(); for (String location : locations) { final URI uri = URI_CONVERTER.convert(location); if (uri.getScheme() == null) { configSources.addAll(tryFileSystem(uri, ordinal)); configSources.addAll(tryClassPath(uri, ordinal, classLoader)); } else if ("classpath".equals(uri.getScheme())) { uri = new URI(uri.toString().substring(10)); configSources.addAll(tryClassPath(uri, ordinal, classLoader)); } else if (uri.getScheme().equals("file")) { configSources.addAll(tryFileSystem(uri, ordinal)); } else if (uri.getScheme().equals("jar")) { configSources.addAll(tryJar(uri, ordinal)); } else if (uri.getScheme().startsWith("http")) { configSources.addAll(tryHttpResource(uri, ordinal)); } else { throw ConfigMessages.msg.schemeNotSupported(uri.getScheme()); } } return configSources; }```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In Spring, one can (or rather have to) add
classpath:
scheme-prefix to a resource name to specify search of the resource in the ClassPath.In SmallRyeConfig, "no prefix" means a ClassPath search.
Could you add additional/optional
classpath:
scheme-prefix support(
AbstractLocationConfigSourceLoader#loadConfigSources
):See also: #1101
~
The text was updated successfully, but these errors were encountered: