Skip to content

Commit

Permalink
Clarify that quarkus.profile cannot be set from a profile aware file
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Feb 22, 2024
1 parent 1903c9d commit abf03b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/main/asciidoc/config-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ Properties in the profile aware file have priority over profile aware properties

[WARNING]
====
Do not use Profile aware files to set `quarkus.profile` or `quarkus.test.profile`. This will not work because the
profile is required in advance to load the profile aware files.
A profile aware file is only loaded if the unprofiled `application.properties` is also available in the same location
and the file extension matches between the files. This is required to keep a consistent loading order and pair all the
resources together.
Expand Down

0 comments on commit abf03b2

Please sign in to comment.