This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT checksum
 
Similar Threads
Compiling with Ant: Package does not exist
wsdl2java server side skeleton
Class files generated in web-inf directory as well as in base directory
ant exception
What does ${user.home} means ? Where is build .properties ?