<checksum>

A task that calculates checksums for a set of files. Loosely based on Ant's Checksum task.

This task takes a set of input files in a fileset and calculates a checksum for each one of them. You can specify the algorithm to use when calculating the checksum value (MD5 or SHA1, for example). The calculated value is saved to a file with the same name as the input file and an added extension either based on the algorithm name (e.g. .MD5), or whatever is specified through the fileext attribute.

Parameters

AttributeTypeDescriptionRequired
algorithmstring Name of Algorithm to use when calculating the checksum. Can be MD5 or SHA1. True
fileextstring The generated checksum file's name will be the original filename with "." and fileext added to it. Defaults to the algorithm name being used False
failonerrorboolFalse
ifboolFalse
unlessboolFalse
verboseboolFalse

Nested Elements:

<fileset>

Set of files to use as input

</fileset>

Examples

                 <checksum algorithm="MD5" fileext="MD5">
                    <fileset>
                       <includes name="${outputdir}\*.dll"/>
                    </fileset>
                 </checksum>