Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation date



Were it possible to find a member "compilation date"
on a Class, or to find this by parsing directly the
compiled-code ? File systems "modification date" is
not reliable, since it could be altered by packaging or
multiple copying...


In my personal project, I just wrote a preprocessor-type script to insert it into the Java file as part of my build process.

You can also parse the ZIP data directly on the JAR file and extract the date from there, by parsing the very archaic DOS datetime format. Fun fun fun.

-Alexei Svitkine
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Compilation date (From: "Patrick Lacour" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.