On Sep 15, 2010, at 8:04 AM, James Carman wrote: > We should just add this to commons lang
Agreed--I didn't even realize this info was in Package. On the idea of manifest reading, though, I still have some code adapted from Ant's manifest code that does provide manifest access, if we want to polish it into a ManifestUtils class... -Matt > > On Sep 15, 2010 9:02 AM, "Rahul Akolkar" <rahul.akol...@gmail.com> wrote: >> On Wed, Sep 15, 2010 at 8:57 AM, Torsten Curdt <tcu...@vafer.org> wrote: >>> IMO the thread showed that there are enough ways to get to that >>> information today. >>> I would not bother and call for the vote. >>> >> <snip/> >> >> +1 to not bothering for digester 2.1. >> >> -Rahul >> >> >>> On Wed, Sep 15, 2010 at 14:54, Simone Tripodi <simone.trip...@gmail.com> > wrote: >>>> I'm going to call a vote for a new Digester release, shall this new >>>> stuff be included in the release? >>>> thanks in advance, >>>> Simo >>>> >>>> http://people.apache.org/~simonetripodi/ >>>> http://www.99soft.org/ >>>> >>>> >>>> >>>> On Wed, Sep 15, 2010 at 2:41 PM, Jochen Wiedmann >>>> <jochen.wiedm...@gmail.com> wrote: >>>>>> James Carman wrote: >>>>> >>>>>> We use a method like this: >>>>>> >>>>>> public static String versionOf(Class c) { >>>>>> final String version = c.getPackage().getImplementationVersion(); >>>>>> return StringUtils.isEmpty(version) ? "n/a" : version; >>>>>> } >>>>>> >>>>>> So, if you want to know what version of Hibernate you're using, you'd > do: >>>>>> >>>>>> versionOf(org.hibernate.Session.class); >>>>> >>>>> Implementation note: getPackage() must be checked against null. >>>>> >>>>> Jochen >>>>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org >> For additional commands, e-mail: dev-h...@commons.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org