They have different date/time information. Date/time may be seen by checksum to calculate checksum...
Koji > -----Original Message----- > From: Gareth Kelly [mailto:[EMAIL PROTECTED] > Sent: Monday, October 18, 2004 5:27 PM > To: 'Ant Users List' > Subject: RE: ANT Checksum > > > The 2 jar files have the same structure: > > Jar 1: > > 0 Fri Oct 15 16:43:36 IST 2004 META-INF/ > 103 Fri Oct 15 16:43:34 IST 2004 META-INF/MANIFEST.MF > 443 Fri Oct 15 16:43:02 IST 2004 GoodbyeWorld.class > 441 Fri Oct 15 16:43:02 IST 2004 HelloWorld.class > > Jar 2: > > 0 Fri Oct 15 16:43:28 IST 2004 META-INF/ > 103 Fri Oct 15 16:43:26 IST 2004 META-INF/MANIFEST.MF > 443 Fri Oct 15 16:42:54 IST 2004 GoodbyeWorld.class > 441 Fri Oct 15 16:42:54 IST 2004 HelloWorld.class > > > And yet different checksums. > > -----Original Message----- > From: Koji Sekiguchi [mailto:[EMAIL PROTECTED] > Sent: 18 October 2004 06:52 > To: Ant Users List > Subject: RE: ANT Checksum > > > > But if I create 2 jar files containing the same ".java" file in > different > > directory, the checksums are different. > > Can someone tell me why? > > Probably because two jar files contain different directory path > information. > If a.jar conatins: > > /a/MyClass.jar > > and if b.jar contains: > > /b/MyClass.jar > > checksum of them should be different. > > regards, > > Koji > > > -----Original Message----- > > From: Gareth Kelly [mailto:[EMAIL PROTECTED] > > Sent: Saturday, October 16, 2004 1:03 AM > > To: 'Ant Users List' > > Subject: ANT Checksum > > > > > > Hello, > > I can use checksum to compare 2 same ".java" files in different > > directories, > > and they match. > > But if I create 2 jar files containing the same ".java" file in > different > > directory, the checksums are different. > > Can someone tell me why? > > > > What I am trying to do is set up an environment where someone can > > get latest > > from VSS, compile and jar it up. Then compare this to a jar in > a test area > > to make sure code has not changed. > > > > > > Thanks, > > Gareth > > > > > > The information in this e-mail is confidential and may be legally > > privileged. It is intended solely for the addressee. Access to > > this e-mail by anyone else is unauthorised. If you are not the > > intended recipient, any disclosure, copying, distribution or any > > other action taken or any views, opinions or advice contained in > > this e-mail are those of the sending individual and not > > necessarily those of the firm. It is possible for data > > transmitted by e-mail to be deliberately or accidentally > > corrupted or intercepted. For this reason where the communication > > is by e-mail, J&E Davy does not accept any responsibility for any > > breach of confidence which may arise from the use of this medium. > > If you have received this e-mail in error please notify us > > immediately at mailto:[EMAIL PROTECTED] and delete this e-mail > > from your system. > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > The information in this e-mail is confidential and may be legally > privileged. It is intended solely for the addressee. Access to > this e-mail by anyone else is unauthorised. If you are not the > intended recipient, any disclosure, copying, distribution or any > other action taken or any views, opinions or advice contained in > this e-mail are those of the sending individual and not > necessarily those of the firm. It is possible for data > transmitted by e-mail to be deliberately or accidentally > corrupted or intercepted. For this reason where the communication > is by e-mail, J&E Davy does not accept any responsibility for any > breach of confidence which may arise from the use of this medium. > If you have received this e-mail in error please notify us > immediately at mailto:[EMAIL PROTECTED] and delete this e-mail > from your system. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]