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

Martin Frei edited comment on CAMEL-21960 at 8/27/25 9:49 AM:
--------------------------------------------------------------

I would say, in case of the properties file, Camel should auto-detect and load 
the following properties file naming patterns as that is what standard also in 
SB and Q, right? At least the {{application.properties|application.yaml}} 
naming pattern to my knowledge.
{code:java}
application.properties|application.yaml 
application-dev.properties|application-dev.yaml
application-test.properties|application-test.yaml
application-prod.properties|applicationprod.yaml
{code}
Any other naming then should be explicitly passed over as argument to the CLI.

See also the following 
[zulip-topic|https://camel.zulipchat.com/#narrow/channel/352237-camel-jbang/topic/Reading.20application.20properties.20doesn't.20seem.20to.20work/with/536383080].


was (Author: JIRAUSER294415):
I would say, in case of the properties file, Camel should auto-detect and load 
the following properties file naming patterns as that is what standard also in 
SB and Q, right? At least the {{application.properties | application.yaml}} 
naming pattern to my knowledge.
{code:java}
application.properties | application.yaml 
application-dev.properties | application-dev.yaml
application-test.properties | application-test.yaml
application-prod.properties | applicationprod.yaml
{code}
Any other naming then should be explicitly passed over as argument to the CLI.

See also the following 
[zulip-topic|https://camel.zulipchat.com/#narrow/channel/352237-camel-jbang/topic/Reading.20application.20properties.20doesn't.20seem.20to.20work/with/536383080].

> camel-jbang - Should camel run | export auto-detect application.properties 
> and include the file always
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21960
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21960
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.x
>
>
> If you use camel run foo.camel.yaml then its only this file that are 
> included. However if you have application.properties file in the same folder, 
> and want to include this then you need to use camel run foo.camel.yaml 
> application.properties (or use camel run *). 
> So the question is should we auto detect application.properties "magically" 
> in camel-jbang and include this always. And then we need to do this for 
> export and other commands as well.
> There is. the --profile option to choose another properties file, so you can 
> have --profile=test and then have a application-test.properties file. So 
> there is some logic we can use to say it should auto-detect 
> application.properties and use it out of the box.
> If you do not want that, you can use camel run foo.camel.yaml --profile=false 
> or something.



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

Reply via email to