File: FilesMatchTest.xml

package info (click to toggle)
phing 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,340 kB
  • sloc: php: 59,826; xml: 9,770; sql: 78; makefile: 39; sh: 14
file content (18 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<project name="FilesMatchTest" default="testFilesMatches">
    <target name="testFileMatches">
        <condition property="matches">
            <filesmatch file1="${phing.home}/etc/VERSION.TXT" file2="${phing.home}/etc/VERSION.TXT"/>
        </condition>
    </target>
    <target name="testNoFileMatches">
        <condition property="unset">
            <filesmatch file1="${phing.home}/etc/VERSION.TXT" file2="${phing.home}/etc/log.xsl"/>
        </condition>
    </target>
    <target name="testDirectoryMatches">
        <condition property="directory">
            <filesmatch file1="${phing.home}/test" file2="${phing.home}/test"/>
        </condition>
    </target>
</project>