struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohan Ranade <rohan.ran...@gmail.com>
Subject Finding out version of Struts2 by introspecting the struts2-core jar
Date Tue, 13 Jul 2010 22:08:28 GMT
Hi all,

I want to find out the version of Struts2 (2.0.x or 2.1.x) by introspecting
the struts2 core jar file. Is there a class which can be introspected to
find this out? (similar to
http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/core/SpringVersion.htmlin
Spring)? Having looked at the struts2 core jar, I see that
<core-jar>/META-INF/maven/org.apache.struts/struts2-core/pom.properties
contains a version property. Is this a reliable way to check the version of
Struts2?

Can someone advise if there is a better way to do this?

Thanks and Regards,
Rohan

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