You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2021/08/23 12:58:08 UTC

[camel-k] 03/03: doc(cli): properties priority

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit ec908ea607e081a1f59c186dc9ff667e3fb71810
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Aug 12 15:39:52 2021 +0200

    doc(cli): properties priority
---
 docs/modules/ROOT/pages/configuration/build-time-properties.adoc | 5 +++++
 docs/modules/ROOT/pages/configuration/runtime-properties.adoc    | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/docs/modules/ROOT/pages/configuration/build-time-properties.adoc b/docs/modules/ROOT/pages/configuration/build-time-properties.adoc
index 4898ab0..b1ab7b1 100644
--- a/docs/modules/ROOT/pages/configuration/build-time-properties.adoc
+++ b/docs/modules/ROOT/pages/configuration/build-time-properties.adoc
@@ -50,6 +50,11 @@ kamel run --build-property=file:quarkus.properties build-property-file-route.gro
 
 The property file is parsed and its properties configured on the `Integration`. As soon as the application starts, you will see the log with the expected configuration.
 
+[[build-time-props-file-precedence]]
+== Property collision priority
+
+If you have a property repeated more than once, the general rule is that the last one declared in your `kamel run` statement will be taken in consideration. If the same property is found both in a single option declaration and inside a file, then, the single option will have higher priority and will be used.
+
 [[build-time-runtime-conf]]
 == Run time properties
 
diff --git a/docs/modules/ROOT/pages/configuration/runtime-properties.adoc b/docs/modules/ROOT/pages/configuration/runtime-properties.adoc
index 8ef5c9f..4fc3b94 100644
--- a/docs/modules/ROOT/pages/configuration/runtime-properties.adoc
+++ b/docs/modules/ROOT/pages/configuration/runtime-properties.adoc
@@ -51,6 +51,11 @@ You'll need to provide a `property` _file_ flag when launching the application:
 
 The property file is parsed and its properties configured on the `Integration`. As soon as the application starts, you will see the log with the expected configuration.
 
+[[runtime-props-file-precedence]]
+== Property collision priority
+
+If you have a property repeated more than once, the general rule is that the last one declared in your `kamel run` statement will be taken in consideration. If the same property is found both in a single option declaration and inside a file, then, the single option will have higher priority and will be used.
+
 [[runtime-build-time-conf]]
 == Build time properties