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

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

commit 7801519c40e5de6599ba2baa3ce8e7be5a2b8274
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue May 18 15:06:44 2021 +0200

    doc(example): build-property example
---
 examples/user-config/build-property-route.groovy | 29 ++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/examples/user-config/build-property-route.groovy 
b/examples/user-config/build-property-route.groovy
new file mode 100644
index 0000000..c32e5e6
--- /dev/null
+++ b/examples/user-config/build-property-route.groovy
@@ -0,0 +1,29 @@
+// camel-k: language=groovy
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+//
+// Provide a build time configuration property (the application name)
+//
+// To run this integrations use:
+//
+// kamel run --build-property=quarkus.application.name=my-super-application 
build-property-route.groovy --dev
+//
+
+from('timer:build-property')
+    .routeId('build-property')
+    .log('The application name: {{quarkus.application.name}}')

Reply via email to