ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: How do you check jar and zip are not corrupted
Date Wed, 20 Feb 2008 12:24:56 GMT
Ramu Sethu wrote:
> Hi all
> I copy files from a m/c thro copy task. These jars and zip files will be
> used in my class path for the next build (which run junit tests). All these
> process are scheduled. But sometimes file copied gets corrupted or not
> copied properly. All my tests in my next build fails. What I wanted is my
> second build should be stopped when the files are corrupted. Is this
> possible ?
> The size of the jars are not constant.

1. use the <checksum> task to checksum a file before the copy, and to 
compare it afterwards
2. if a copy is not working, something is seriously wrong. is it a copy 
to a network drive? to some odd filesystem, or on top of libraries that 
are in use at the time?

Steve Loughran        
Author: Ant in Action 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message