<checksum>

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
failonerrorbool Determines if task failure stops the build, or is just reported. The default is true. False
ifbool If true then the task will be executed; otherwise, skipped. The default is true. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<fileset>

Set of files to use as input

</fileset>

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.92.4543.0)