| <?xml version="1.0"?> |
| <project default="cleanup" basedir="."> |
| |
| <target name="cleanup"> |
| <delete file="../asf-logo.gif.md5" /> |
| </target> |
| |
| <target name="createMd5"> |
| <checksum file="../asf-logo.gif" fileext=".md5" /> |
| </target> |
| |
| <target name="setProperty"> |
| <checksum file="../asf-logo.gif" property="logo.md5" /> |
| </target> |
| |
| <target name="verifyAsTask"> |
| <copy file="expected/asf-logo.gif.md5" todir=".." /> |
| <checksum file="../asf-logo.gif" fileext=".md5" |
| verifyproperty="logo.md5" /> |
| |
| <copy file="checksum.xml" tofile="../asf-logo.gif.md5" |
| overwrite="true" /> |
| <checksum file="../asf-logo.gif" fileext=".md5" |
| verifyproperty="no.logo.md5" /> |
| </target> |
| |
| <target name="verifyAsCondition"> |
| <copy file="expected/asf-logo.gif.md5" todir=".." /> |
| <condition property="logo.md5"> |
| <checksum file="../asf-logo.gif" fileext=".md5" /> |
| </condition> |
| |
| <copy file="checksum.xml" tofile="../asf-logo.gif.md5" |
| overwrite="true" /> |
| <condition property="no.logo.md5"> |
| <checksum file="../asf-logo.gif" fileext=".md5" /> |
| </condition> |
| </target> |
| </project> |