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 2026/02/27 16:33:15 UTC
(camel) branch main updated: CAMEL-23002: camel plugin add xyz - should ignore the gav in the camel-jbang-user.properties (#21637)
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 05c2e4486c9c CAMEL-23002: camel plugin add xyz - should ignore the gav in the camel-jbang-user.properties (#21637)
05c2e4486c9c is described below
commit 05c2e4486c9c6e5b1b6799b212ba0fd0c1b37763
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Feb 27 17:33:07 2026 +0100
CAMEL-23002: camel plugin add xyz - should ignore the gav in the camel-jbang-user.properties (#21637)
---
.../apache/camel/dsl/jbang/core/common/CommandLineHelper.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/CommandLineHelper.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/CommandLineHelper.java
index 39274c6d9d30..eb8a4f56772a 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/CommandLineHelper.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/CommandLineHelper.java
@@ -164,6 +164,16 @@ public final class CommandLineHelper {
public CamelUserConfigDefaultValueProvider(Properties properties) {
super(properties);
}
+
+ @Override
+ public String defaultValue(CommandLine.Model.ArgSpec argSpec) throws Exception {
+ // all plugin commands should not support default values from camel-jbang-user.properties
+ CommandLine.Model.CommandSpec parent = argSpec.command().parent();
+ if (parent != null && parent.name().equals("plugin")) {
+ return null;
+ }
+ return super.defaultValue(argSpec);
+ }
}
}