forked from madushadhanushka/wso2-artifacts-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file_copy_connector.xml
25 lines (25 loc) · 1011 Bytes
/
file_copy_connector.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="file_copy_connector"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="http,https">
<target>
<inSequence>
<property name="FName" scope="default" type="STRING" value="test.xml"/>
<property expression="fn:concat('file://home/in/' , get-property('default', 'FName'))"
name="sourceURL"/>
<fileconnector.copy>
<source>{$ctx:sourceURL}</source>
<destination>file://home/out/</destination>
<setTimeout>10000</setTimeout>
<setPassiveMode>true</setPassiveMode>
<setSoTimeout>10000</setSoTimeout>
<setUserDirIsRoot>false</setUserDirIsRoot>
<setStrictHostKeyChecking>no</setStrictHostKeyChecking>
</fileconnector.copy>
</inSequence>
</target>
<description/>
</proxy>