In ApplicationContext there is a getJVMVersion() that returns a
Version structure. I'm looking for something that gives me the Pivot
version number (Version object) in a similar fashion and I can't find
it. Is there such a method? If not, do you think it would be useful?
Could it be set somehow
You can get this information from the JAR manifests but it is pretty ugly. Best
thing to do would probably be to add build.properties or something like it to
the generated JARs so it would be available on the classpath.
On May 19, 2011, at 3:42 PM, Roger L. Whitcomb wrote:
In
| fax: +1 650-587-5550
-Original Message-
From: Greg Brown [mailto:gk_br...@verizon.net]
Sent: Thursday, May 19, 2011 1:04 PM
To: dev@pivot.apache.org
Subject: Re: Pivot version available programmatically?
You can get this information from the JAR manifests but it is pretty
ugly. Best
Would it be worth adding this to the build? Would it then also be worth
adding an API to load and parse this as a Version structure?
Yes, I think so.