nicolaferraro commented on issue #1522:
URL: https://github.com/apache/camel-k/issues/1522#issuecomment-642520309


   > Yep but my point is that there's a different behaviour for the same option 
used inside a source and outside the source so 
property-file=application.properties may related to two different locations 
depending where the option is used, if that's acceptable I can work on it
   
   Oh, yes. I think this difference is already there.
   
   Take a file like `./path/It.java` and a property file 
`./application.properties`.
   
   To run the file and link it to the properties, you should run:
   
   ```
   kamel run ./path/It.java --property-file application.properties
   ```
   
   Because CLI options are not related to the file but to the current location.
   
   But if you want to link it using modeline, you should write this line in the 
file:
   
   ```
   // camel-k: property-file=../application.properties
   ```
   
   I don't see it as a big problem, we just need to document it ;)


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to