You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/03/13 16:29:05 UTC
(camel) 03/06: CAMEL-18090: camel-main - Loading properties with profiles for prod/dev/test
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main-profile
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 35f691c231ba4a913a39d76db7a519e168f1054d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Mar 13 15:54:46 2024 +0100
CAMEL-18090: camel-main - Loading properties with profiles for prod/dev/test
---
docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index fb287b02931..9031ef4a580 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -547,6 +547,14 @@ However, you may want to run Camel JBang in a more production like situation, wh
camel run hello.java --profile=prod
----
+You can have profile specific configuration in configuration files using the naming style `application-<profile>.properties`,
+such as in the following:
+
+- `application.properties` - Common configuration that is always in use (default).
+- `application-dev.properties` - Developer specific configuration for the `dev` profile.
+- `application-prod.properties` - Developer specific configuration for the `prod` profile.
+
+The profile specific configuration will override values in the common configuration.
=== Downloading JARs over the internet
@@ -3112,6 +3120,8 @@ camel export --runtime=quarkus --gav=com.foo:acme:1.0-SNAPSHOT --directory=../my
TIP: See the possible options by running: `camel export --help` for more details.
+NOTE: You cannot use `--profile` option when exporting to Camel Quarkus.
+
=== Exporting to Camel Main
The command `export --runtime=camel-main` will export your current Camel JBang file(s) to a Maven based