ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@rediffmail.com>
Subject Re: [PROPOSAL] Checksum - a task to calculate checksums for files.
Date Mon, 05 Nov 2001 21:23:20 GMT

Another alternative instead of using the tofile
attribute is to create a new checksum file for every file
wiht the algorithm name attached to its end.

For eg, if source file is named xyz.zip, its MD5 
checksum would be stored in the same directory under the 
name xyz.zip.MD5

On Tue, 06 Nov 2001 Magesh Umasankar wrote :
> 
> Checksum Task
> =============
> 
> I propose to create a task named checksum that allows 
> the user to generate checksums for files.  
> 
> The task would take in these attributes:
> 
> 1. file (optional if nested fileset is used)
> 2. algorithm (optional, defaults to MD5). Other 
>    algorithms like SHA, etc. will be supported.
> 3. tofile - mandatory (to store generated checksums)
>    
>    tofile's contents would be in the following format:
>    
>    filename:checksum
> 
> 
> Use Case:
> ========
> 
> The step in the build that follows a successful compile,
>  
> test and packaging is distribution.  It has become a 
> standard practice to distribute the file's checksum so 
> that the one who is downloading can check the 
> distribution's completeness.  A task that can compute 
> such a checksum, given a file, would thus be a natural 
> fit into the build process.
> 
> 
> Your Inputs Please:
> ==================
> 
> 1. Do you consider such a task useful?
> 2. What other features would you want to see added to 
>    this task?
> 3. Has such a task already been proposed and/or 
>    rejected? (I did my homework, and couldn't find any.)
> 
> 
> Thanks,
> Magesh
>  

 


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message