my dog learned polymorphism
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT checksum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT checksum" Watch "ANT checksum" New topic

ANT checksum

steeve jones

Joined: Sep 24, 2010
Posts: 3
I tried to do a checksum of a directory twice and compared the two values, I get 2 different values from checksum. Can anyone tell me what is the mistake i am doing?

Answer i get -
Buildfile: build.xml

[echo] value of prop is 8a76f4364f3d593d9af177630b22b431
[echo] fb3eb4fb22641ba916e55230b597b12a

James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

Take a look at the 'todir' property in . This would imply that the first use will add files to the directory so that this will then change the checksum for the second use. A quick test shows this to be the case. Maybe you should specify a different directory to place the checksums.

Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
jQuery in Action, 3rd edition
subject: ANT checksum
It's not a secret anymore!