Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28153

easily accessible jar date

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject easily accessible jar date
Date 2014-04-20 21:29 -0700
Organization Canadian Mind Products
Message-ID <o779l9tl1js0bc9du26123d1ino5tg4ipu@4ax.com> (permalink)

Show all headers | View raw


When my program is running, it wants to know the timestamp of when any
of the classes last changed.

I might be running it in a debugger in IntelliJ, as separate classes,
in a jar, or in a Jet exe.

If the program is distributed, I don't know where they might put the
pieces.

So I would like it if a timestamp were automatically created and
included as a resource.

Are their easy ways of pulling this off, perhaps with ANT, or do I
need to write some utility?

All I want to do is invalidate  cache entries when the program runs if
the software changes.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
"Don't worry about people stealing an idea; if it's original, you'll
 have to shove it down their throats." 
~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

easily accessible jar date Roedy Green <see_website@mindprod.com.invalid> - 2014-04-20 21:29 -0700

csiph-web