I use a file component
in my mule flow
that add the payload
in that file. The mule flow is:
HTTP Listener
=> Payload
=> File
=> ...
The component in XML:
<file:outbound-endpoint path="${test}" outputPattern="tested_#[function:datestamp:yyyyMMdd].log" connector-ref="File" responseTimeout="1000" doc:name="File"/>
When I generate the file, it create a folder called test
in mule-esb-directory\\bin
but I want to create it in the project directory for example: mule-esb-directory\\app\\MyMuleProject
.
I use a properties file
to set the path but it does not work.
Now: mule-esb-directory\\bin\\test
I want: mule-esb-directory\\app\\MymuleProject
Try using this
src/main/resources/
Or try with absolute path, like this
/opt/mule-esb-directory/app/MymuleProject
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.