myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kito Mann <kito.m...@virtua.com>
Subject Re: version info
Date Wed, 31 Aug 2011 22:19:47 GMT
On Wed, Aug 31, 2011 at 4:28 PM, Bernd Bohmann <bernd.bohmann@atanion.com>wrote:

> For example:
>
> FacesContext.class.getPackage().getImplementationVersion()
>

Unfortunately, this returns null...

>
> or
>
> read the content of
>
> META-INF/maven/org.apache.myfaces.core/myfaces-api/pom.properties
> the property should be version
>

That would work, but since there may be more than one MyFaces JAR in the
classpath, this may not work (looks like the file is in one JAR, but not the
other).

>
> But I don't know from which version it works.
>
>
> Regards
>
> Bernd
>
>
>
>
> On Wed, Aug 31, 2011 at 6:51 PM, Kito Mann <kito.mann@virtua.com> wrote:
> > Is there a way to tell programmatically at runtime exactly which version
> of
> > MyFaces is running?
> > ---
> > Kito D. Mann | twitter: kito99 | Author, JSF in Action
> > Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and
> consulting
> > http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info |
> twitter:
> > jsfcentral
> > +1 203-404-4848 x3
> >
> > * Listen to the latest headlines in the JSF and Java EE newscast:
> >
> http://blogs.jsfcentral.com/roller/editorsdesk/category/JSF+and+Java+EE+Newscast
> > * Keep up with the aftermath of the Oracle/Sun merger:
> > http://www.mergerspeak.com
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message