This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.18.x by this push:
new 4392856ac140 [backport camel-4.18.x] CAMEL-23821: fix not finding any
files in validation (#24225)
4392856ac140 is described below
commit 4392856ac140330bed4a38fb273a71f6084d8aae
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 24 15:08:06 2026 +0200
[backport camel-4.18.x] CAMEL-23821: fix not finding any files in
validation (#24225)
CAMEL-23821: fix not finding any files in validation
Remove leftover Path[] filePaths field from YamlValidateCommand that
shadowed the actual List<String> files parameter, causing the YAML
validate command to find no files to validate.
Closes #24224
Co-authored-by: Otavio Rodolfo Piske <[email protected]>
---
.../camel/dsl/jbang/core/commands/validate/YamlValidateCommand.java | 2 --
1 file changed, 2 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-validate/src/main/java/org/apache/camel/dsl/jbang/core/commands/validate/YamlValidateCommand.java
b/dsl/camel-jbang/camel-jbang-plugin-validate/src/main/java/org/apache/camel/dsl/jbang/core/commands/validate/YamlValidateCommand.java
index 84436f06e96d..144369f69c5e 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-validate/src/main/java/org/apache/camel/dsl/jbang/core/commands/validate/YamlValidateCommand.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-validate/src/main/java/org/apache/camel/dsl/jbang/core/commands/validate/YamlValidateCommand.java
@@ -17,7 +17,6 @@
package org.apache.camel.dsl.jbang.core.commands.validate;
import java.io.File;
-import java.nio.file.Path;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
@@ -41,7 +40,6 @@ public class YamlValidateCommand extends CamelCommand {
arity = "1..9",
paramLabel = "<files>",
parameterConsumer = FilesConsumer.class)
- Path[] filePaths;
List<String> files = new ArrayList<>();
public YamlValidateCommand(CamelJBangMain main) {