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

gzurowski pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 643a627ba647b367522e74288fd1de6d0b3f406c
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Sep 10 14:28:31 2024 +0200

    CAMEL-21194: camel-jbang - Fix run to work with xxx.camel.yaml files. 
(#15493)
---
 .../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