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

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


The following commit(s) were added to refs/heads/main by this push:
     new 8e32eb4e5fd CAMEL-18118: camel-jbang - Linux terminal scripting using 
pipes
8e32eb4e5fd is described below

commit 8e32eb4e5fd675ee35796c1b0abf78816dc7b2f1
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 18 13:15:15 2022 +0200

    CAMEL-18118: camel-jbang - Linux terminal scripting using pipes
---
 .../main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
index cdd5b796fc1..d66927492bc 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
@@ -49,6 +49,13 @@ class Pipe implements Callable<Integer> {
     @CommandLine.Option(names = { "--logging-level" }, defaultValue = "info", 
description = "Logging level")
     String loggingLevel;
 
+    @CommandLine.Option(names = { "--properties" },
+            description = "Load properties file for route placeholders (ex. 
/path/to/file.properties")
+    String propertiesFiles;
+
+    @CommandLine.Option(names = { "-p", "--prop", "--property" }, description 
= "Additional properties (override existing)", arity = "0")
+    String[] property;
+
     @Override
     public Integer call() throws Exception {
         // remove leading ./ when calling a script in pipe mode
@@ -63,6 +70,8 @@ class Pipe implements Callable<Integer> {
         run.maxSeconds = maxSeconds;
         run.maxMessages = maxMessages;
         run.maxIdleSeconds = maxIdleSeconds;
+        run.property = property;
+        run.propertiesFiles = propertiesFiles;
         return run.runPipe(file);
     }
 

Reply via email to