File: filehash.xml

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (22 lines) | stat: -rw-r--r-- 635 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
<?xml version="1.0" ?>
<project name="FileHash Test" default="build">
    <target name="testMD5">
    	<filehash file="filehash.bin" propertyName="filehash.md5"
    	hashtype="0"/>
    	<echo>${filehash.md5}</echo>
    </target>
    
    <target name="testSHA1">
    	<filehash file="filehash.bin" propertyName="filehash.sha1"
    	hashtype="1"/>
   	<echo>${filehash.sha1}</echo>
    </target>

	<target name="testCRC32">
		<filehash file="filehash.bin" propertyName="filehash.crc32"
				  algorithm="crc32"/>
		<echo>${filehash.crc32}</echo>
	</target>
    
    <target name="build" depends="testMD5,testSHA1,testCRC32"/>
</project>