You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/22 10:22:04 UTC

[GitHub] [camel] davsclaus commented on pull request #6459: [CAMEL-17216] Allow to include properties file

davsclaus commented on pull request #6459:
URL: https://github.com/apache/camel/pull/6459#issuecomment-975371328


   What if you have a properties file in the current folder, or a sub folder, where you do not have a leading slash, eg
   
   ```
   jbang -Dcamel.jbang.version=3.14.0 CamelJBang@apache/camel run github:apache:camel-k:examples/languages/routes.yaml --properties my-prop.properties
   ```
   
   or
   
   ```
   jbang -Dcamel.jbang.version=3.14.0 CamelJBang@apache/camel run github:apache:camel-k:examples/languages/routes.yaml --properties ../config/application.properties
   ```
   
   The default resolver is classpath, but this wont work with jbang (well it would be odd to have a JAR that embeds .properties that should be loaded). So we could maybe always just use file: as scheme prefix


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org