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

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

commit fed6081ee702053825fbe68e40710b4348e332a9
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Sep 10 14:10:22 2024 +0200

    CAMEL-21194: camel-jbang - Fix run to work with xxx.camel.yaml files.
---
 .../main/java/org/apache/camel/dsl/jbang/core/common/SourceHelper.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/SourceHelper.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/SourceHelper.java
index 1601dbd8a73..fd992fc36dd 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/SourceHelper.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/common/SourceHelper.java
@@ -57,7 +57,7 @@ public class SourceHelper {
         List<Source> resolved = new ArrayList<>();
         for (String source : sources) {
             SourceScheme sourceScheme = SourceScheme.fromUri(source);
-            String fileExtension = FileUtil.onlyExt(source);
+            String fileExtension = FileUtil.onlyExt(source, true);
             String fileName = SourceScheme.onlyName(FileUtil.onlyName(source));
             if (fileExtension != null) {
                 fileName = fileName + "." + fileExtension;

Reply via email to