1 | <?xml version="1.0"?>
|
---|
2 | <project default="cleanup" basedir=".">
|
---|
3 |
|
---|
4 | <target name="cleanup">
|
---|
5 | <delete file="../asf-logo.gif.MD5" />
|
---|
6 | <delete file="../asf-logo.gif.md5" />
|
---|
7 | <delete>
|
---|
8 | <fileset dir="checksum">
|
---|
9 | <include name="**/*.MD5"/>
|
---|
10 | </fileset>
|
---|
11 | </delete>
|
---|
12 | <delete dir="checksum/checksums" />
|
---|
13 | </target>
|
---|
14 |
|
---|
15 | <target name="createMd5">
|
---|
16 | <checksum file="../asf-logo.gif" fileext=".MD5" />
|
---|
17 | </target>
|
---|
18 |
|
---|
19 | <target name="setProperty">
|
---|
20 | <checksum file="../asf-logo.gif" property="logo.MD5" />
|
---|
21 | </target>
|
---|
22 |
|
---|
23 | <target name="verifyAsTask">
|
---|
24 | <copy file="expected/asf-logo.gif.md5" todir=".." />
|
---|
25 | <checksum file="../asf-logo.gif" fileext=".md5"
|
---|
26 | verifyproperty="logo.MD5" />
|
---|
27 |
|
---|
28 | <copy file="checksum.xml" tofile="../asf-logo.gif.MD5"
|
---|
29 | overwrite="true" />
|
---|
30 | <checksum file="../asf-logo.gif" fileext=".MD5"
|
---|
31 | verifyproperty="no.logo.MD5" />
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | <target name="verifyAsCondition">
|
---|
35 | <copy file="expected/asf-logo.gif.md5" todir=".." />
|
---|
36 | <condition property="logo.MD5">
|
---|
37 | <checksum file="../asf-logo.gif" fileext=".md5" />
|
---|
38 | </condition>
|
---|
39 |
|
---|
40 | <copy file="checksum.xml" tofile="../asf-logo.gif.MD5"
|
---|
41 | overwrite="true" />
|
---|
42 | <condition property="no.logo.MD5">
|
---|
43 | <checksum file="../asf-logo.gif" fileext=".MD5" />
|
---|
44 | </condition>
|
---|
45 | </target>
|
---|
46 |
|
---|
47 | <target name="verifyFromProperty">
|
---|
48 | <checksum property="checksum" file="checksum.xml"/>
|
---|
49 | <checksum property="${checksum}" file="checksum.xml"
|
---|
50 | verifyproperty="verify"/>
|
---|
51 | </target>
|
---|
52 |
|
---|
53 | <target name="verifyTotal">
|
---|
54 | <checksum totalproperty="total">
|
---|
55 | <fileset dir="${basedir}/checksum">
|
---|
56 | <exclude name="**/*.MD5"/>
|
---|
57 | </fileset>
|
---|
58 | </checksum>
|
---|
59 | </target>
|
---|
60 |
|
---|
61 | <target name="verifyChecksumdir">
|
---|
62 | <checksum totalproperty="total" todir="${basedir}/checksum/checksums">
|
---|
63 | <fileset dir="${basedir}/checksum">
|
---|
64 | <exclude name="**/*.MD5"/>
|
---|
65 | </fileset>
|
---|
66 | </checksum>
|
---|
67 | </target>
|
---|
68 | <!-- bug report 25606 -->
|
---|
69 | <target name="verifyChecksumdirNoTotal">
|
---|
70 | <checksum todir="${basedir}/checksum/checksums">
|
---|
71 | <fileset dir="${basedir}/checksum">
|
---|
72 | <exclude name="**/*.MD5"/>
|
---|
73 | </fileset>
|
---|
74 | </checksum>
|
---|
75 | </target>
|
---|
76 | </project> |
---|