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 455ed4f3184 camel-jbang - Dont show run in background when doing
transform commands
455ed4f3184 is described below
commit 455ed4f3184fe165ba8afa54572244210b6be192
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Feb 6 13:15:32 2024 +0100
camel-jbang - Dont show run in background when doing transform commands
---
.../main/java/org/apache/camel/dsl/jbang/core/commands/Run.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
index 6f7e77dc3bb..2ba9f851e31 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
@@ -311,6 +311,7 @@ public class Run extends CamelCommand {
// just boot silently and exit
this.transformRun = true;
this.ignoreLoadingError = ignoreLoadingError;
+ this.name = "transform";
return run();
}
@@ -940,7 +941,7 @@ public class Run extends CamelCommand {
if (background) {
Process p = pb.start();
this.spawnPid = p.pid();
- if (!silentRun) {
+ if (!silentRun && !transformRun && !transformMessageRun) {
printer().println("Running Camel integration: " + name + "
(version: " + camelVersion
+ ") in background with PID: " + p.pid());
}
@@ -975,7 +976,7 @@ public class Run extends CamelCommand {
pb.command(cmds);
Process p = pb.start();
this.spawnPid = p.pid();
- if (!silentRun) {
+ if (!silentRun && !transformRun && !transformMessageRun) {
printer().println("Running Camel integration: " + name + " in
background with PID: " + p.pid());
}
return 0;
@@ -1052,7 +1053,7 @@ public class Run extends CamelCommand {
if (background) {
Process p = pb.start();
this.spawnPid = p.pid();
- if (!silentRun) {
+ if (!silentRun && !transformRun && !transformMessageRun) {
printer().println("Running Camel integration: " + name + "
(version: " + camelVersion
+ ") in background with PID: " + p.pid());
}