GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT checksum" Watch "ANT checksum" New topic
Author

ANT checksum

steeve jones
Greenhorn

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

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

BUILD SUCCESSFUL
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

Take a look at the 'todir' property in http://ant.apache.org/manual/Tasks/checksum.html . 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.
 
GeeCON Prague 2014
 
subject: ANT checksum