Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT checksum

 
steeve jones
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic