File: FileSyncTaskTest.xml

package info (click to toggle)
phing 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,368 kB
  • sloc: php: 59,821; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (42 lines) | stat: -rw-r--r-- 1,465 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<project name="FileSyncTaskTest" default="main">
    <property name="tmp.dir" value="tmp"/>

    <target name="setup">
    	<mkdir dir="${tmp.dir}/project"/>
    </target>

    <target name="clean">
        <delete dir="${tmp.dir}"/>
    </target>

    <target name="noSourceDir">
    	<filesync destinationdir="${tmp.dir}/destination/"/>
    </target>

    <target name="noDestinationDir">
    	<filesync sourcedir="${tmp.dir}/project/"/>
    </target>

    <target name="wrongSource">
    	<filesync sourcedir="${tmp.dir}/nonexistent/" destinationdir="${tmp.dir}/destination/"/>
    </target>

    <!--target name="testLocalFileSync">
    	<filesync sourcedir="${tmp.dir}/project/" destinationdir="${tmp.dir}/destination/"/>
    </target>

    <target name="testRemoteFileSync">
    	<filesync sourcedir="${tmp.dir}/project" destinationdir="host:/var/www/project"/>
    	<filesync sourcedir="${tmp.dir}/project" destinationdir="user@host:/var/www/project"/>
    	<filesync sourcedir="${tmp.dir}/project" destinationdir="host::module"/>
    	<filesync sourcedir="host:/var/www/project" destinationdir="${tmp.dir}/project"/>
    	<filesync sourcedir="user@host:/var/www/remote_project/" destinationdir="${tmp.dir}/project/"/>
    </target-->

    <target name="testRemoteToRemoteSync">
    	<filesync sourcedir="host1::module" destinationdir="user@host2:/var/www/project"/>
    </target>

    <target name="main"/>
</project>