Skip to content
New issue

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

Log warning if a known configuration file exists and we have no parser #1853

Merged
merged 1 commit into from
May 25, 2020

Conversation

tomas-langer
Copy link
Member

@tomas-langer tomas-langer commented May 22, 2020

Signed-off-by: Tomas Langer tomas.langer@oracle.com

Currently if you have for example application.yaml on classpath, yet forget to add helidon-config-yaml module, the file is ignored by Config.

This change at least logs a warning when no configuration or meta-configuration file is found, and:

  1. File application.* and/or meta-config.* in current directory
  2. File application.* and/or meta-config.* on classpath

exists and there is no parser configured for it, for the following file suffixes:

  1. yaml
  2. conf
  3. json

…r for it.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
@tomas-langer tomas-langer added config 2.x Issues for 2.x version branch labels May 22, 2020
@tomas-langer tomas-langer self-assigned this May 22, 2020
@tomas-langer tomas-langer merged commit 8cfabc8 into helidon-io:master May 25, 2020
@tomas-langer tomas-langer deleted the config-warn-no-parser branch May 25, 2020 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch config
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants