Gotcha, so in that case, yes, that properties file is exactly what you want.
Don On Wed, Jul 14, 2010 at 11:31 AM, Rohan Ranade <rohan.ran...@gmail.com> wrote: > IDE integration. I maintain the NetBeans Struts2 plugin ( > http://nbstruts2support.dev.java.net). To quote one use case: When creating > a new project, the user has a choice of selecting Struts 2.0.x or > Struts2.1.x libraries to be added to the classpath from a location specified > by the user. Depending on the version chosen by the user, the netbeans > plugin has to either add the FilterDispatcher (for 2.0.x) or the > StrutsPrepareAndExecute filter (2.1.x) to the web.xml. > > Thanks and Regards, > Rohan > > On Tue, Jul 13, 2010 at 5:27 PM, Don Brown <mr...@twdata.org> wrote: > >> On Wed, Jul 14, 2010 at 8:08 AM, Rohan Ranade <rohan.ran...@gmail.com> >> wrote: >> > 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? >> >> Yes, this is reliable as long as Struts 2 is built with Maven 2, which >> is highly likely to be the case for the foreseeable future. Is there >> a specific use case you have in mind in which you need to know the >> version? >> >> Don >> > >> > Can someone advise if there is a better way to do this? >> > >> > Thanks and Regards, >> > Rohan >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org