Article View: borland.public.jbuilder.java.language
Article #15111Re: Getting Compile Time
From: Steve Horsley
Date: Fri, 09 Jul 1999 00:00
Date: Fri, 09 Jul 1999 00:00
113 lines
4671 bytes
4671 bytes
He means the file creation/last-modified timestamp. I think that this is read from the file system and stored along with the file when the ZIP file is created. Sorry Hakan, I don't know how to get at it. Have a look at java.util.zip.ZipFile and java.util.zip.ZipEntry. These are probably the way to go. Steve. //--------------------------------------- Hakan UNLU wrote: > > No. I want to get the date and time of the compilation (not the duration of > load or compile) > > I cannot reach the class file because it is in a zip or jar file on the > classpath and I do not know where it is in my program. > > I am looking for someting like > > Timestamp x = myClass.getClass().getCompileTimestamp(); > > Thanks > -- > Hakan UNLU > Hitit Computer Services > ------------------------------------------------------------- > Visit my virtual bookstore at > http://surf.to/hakan-books > ------------------------------------------------------------ > Rich Wilkman <rwilkman@inprise.com> wrote in message > news:3784D814.A3EC3230@inprise.com... > > Hakan: > > > > I still don't follow. Do you mean the process of taking a .class file > > in a ZIP and loading it, etc. until it is available (and you therefore > > have something of type Class to work with)? > > > > -Rich > > > > Hakan UNLU wrote: > > > > > > I meant the "creation time of Class file " that resides in a zip file > > > > > > -- > > > Hakan UNLU > > > Hitit Computer Services > > > ------------------------------------------------------------- > > > Visit my virtual bookstore at > > > http://surf.to/hakan-books > > > ------------------------------------------------------------ > > > Rich Wilkman <rwilkman@inprise.com> wrote in message > > > news:37837980.B73463CD@inprise.com... > > > > Hakan: > > > > > > > > If you have classes, they are already compiled. Too late to get > compile > > > > time info at that stage. If you are trying to see how long it takes > to > > > > load classes from a ZIP, you could write some wrapper class to read > from > > > > the ZIP, etc. Make suref to use different length classpaths and > > > > different positions. When all you know is the name of the class file, > > > > you have to search *all* archives on the classpath until you find it. > > > > > > > > -Rich > > > > > > > > Hakan UNLU wrote: > > > > > > > > > > In testing my program I need to get the compile time for some > classes > > > > > The classes are stored in a zip file. > > > > > How can I obtain this data? > > > > > > > > > > Thanks > > > > > > > > > > -- > > > > > Hakan UNLU > > > > > Hitit Computer Services > > > > > ------------------------------------------------------------- > > > > > Visit my virtual bookstore at > > > > > http://surf.to/hakan-books > > > > > ------------------------------------------------------------ > > > > > > > > -- > > > > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > Rich Wilkman > > > > Quality Assurance Manager > > > > Borland JBuilder Team > > > > > > > > If you see something that looks like an opinion up there, > > > > it's mine and mine alone. > > > > > > > > Mail sent to me from the newsgroups won't bounce but will > > > > be ignored. If I have time, I'll respond, but you have > > > > a better chance if you confine your posts to the newsgroups > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > > -- > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > Rich Wilkman > > Quality Assurance Manager > > Borland JBuilder Team > > > > If you see something that looks like an opinion up there, > > it's mine and mine alone. > > > > Mail sent to me from the newsgroups won't bounce but will > > be ignored. If I have time, I'll respond, but you have > > a better chance if you confine your posts to the newsgroups > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<3785BC1D.BFB056A4@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7lur15$e274@forums.borland.com> <37837980.B73463CD@inprise.com> <7m1955$gb35@forums.borland.com> <3784D814.A3EC3230@inprise.com> <7m419p$io715@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5401e3fddb9d0fc5 X-Google-Attributes: gidf74b3,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: Re: Getting Compile Time Date: 1999/07/09 Message-ID: <3785BC1D.BFB056A4@cwcom.co.uk> X-Deja-AN: 499030539 Content-Transfer-Encoding: 7bit References: <7lur15$e274@forums.borland.com> <37837980.B73463CD@inprise.com> <7m1955$gb35@forums.borland.com> <3784D814.A3EC3230@inprise.com> <7m419p$io715@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Cable & Wireless Communications Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language