[ 
https://issues.apache.org/jira/browse/CAMEL-19780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17758027#comment-17758027
 ] 

Ricardo Martinez commented on CAMEL-19780:
------------------------------------------

Yes, exactly, referencing the files using {{./}} notation doesn't seem to work. 
What would be the command for Camel 4.0.0?


jbang -Dcamel.jbang.version=3.21.0 camel@apache/camel:4.0.0 run 
./rest-dsl.camel.yaml
 

> Camel JBang does not support relative paths
> -------------------------------------------
>
>                 Key: CAMEL-19780
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19780
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>            Reporter: Ricardo Martinez
>            Priority: Minor
>
> When trying to execute a file through JBang, it doesn't recognize relative 
> paths.
> For instance, the following commands don't work:
> {code:java}
> jbang -Dcamel.jbang.version=3.21.0 camel@apache/camel run 
> ./rest-dsl.camel.yaml
> camel init /tmp/Test.java{code}
> In contrast, the following works:
> {code:java}
> jbang -Dcamel.jbang.version=3.21.0 camel@apache/camel run 
> rest-dsl.camel.yaml{code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to