• Post Reply Bookmark Topic Watch Topic
  • New Topic

File dates in JAR verbose display  RSS feed

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are the file dates later than the manifest creation date ?
File dates interest me - you could have copied the wrong version of the file into the directory to be JAR'ed.

http://java.sun.com/docs/books/tutorial/deployment/jar/view.html
The JAR tool will display additional information if you use the v option:
jar tvf TicTacToe.jar
For example, the verbose output for the TicTacToe JAR file would look similar to this:

256 Mon Apr 18 10:50:28 PDT 2005 META-INF/MANIFEST.MF
3885 Mon Apr 18 10:49:50 PDT 2005 TicTacToe.class
0 Wed Apr 20 16:39:32 PDT 2005 audio/
4032 Wed Apr 20 16:39:32 PDT 2005 audio/beep.au
2566 Wed Apr 20 16:39:32 PDT 2005 audio/ding.au
6558 Wed Apr 20 16:39:32 PDT 2005 audio/return.au
7834 Wed Apr 20 16:39:32 PDT 2005 audio/yahoo1.au
7463 Wed Apr 20 16:39:32 PDT 2005 audio/yahoo2.au
0 Wed Apr 20 16:39:44 PDT 2005 images/
157 Wed Apr 20 16:39:44 PDT 2005 images/cross.gif
158 Wed Apr 20 16:39:44 PDT 2005 images/not.gif
 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well yes, turning the page I read that files can be added to a JAR.
So are these dates the dates the files added to the JAR ?
Even so, TicTacToe.class < manifest.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The dates on the files are the dates they were last modified before being added to the jar file.
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try recompiling a file, note the time, wait, add it to the jar, then note the time again.
I suspect those times are when the file was compiled. Or maybe copied into a folder before the .jar was created.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!