How to specify a “linked” identification file for SFTP in Mule?

I know that I can use an absolute system path, for example ... identityFile="/path/to/key-file" ..., but this is not good. I will deploy the Mule application in different places with different and sometimes unknown ways. Thus, the id file must be part of the Mule application.

I have imported the id file into the src / main / app file, but I do not know how to access it using the relative path. Can I do something like ${MULE_APP_ROOT}/key-file?

+3
source share
1 answer

I found that I can use ${app.home}to reference the root of my project. Therefore, if the key file is at the root of my application, I can use:

... identityFile="${app.home}/key-file" ...
+3
source

All Articles