The Wicket version is available in the manifest file (it is put there
automatically by maven).

more MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: Apache Maven
Built-By: martijn
Package: wicket
Build-Jdk: 1.4.2_09
Extension-Name: wicket
Specification-Title: a Java web application framework.
Specification-Vendor: Wicket developers
Implementation-Title: wicket
Implementation-Vendor: Wicket developers
Implementation-Version: 1.2-beta1

Martijn


On 3/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> there are a couple of ways we can do this. there is wicket.properties which
> can house a wicket.version property, or we can create something like
>
> public class WickerVersion { public static final String MAJOR="blah"; public
> static final String MINOR="blah"; }
>
> we can use mvn filters to populate the values somehow. martijn do you know
> how we can get the version you are building from mvn script? and how mvn
> filtering works?
>
> which fields would we need? will a simple string do? do we need major/minor?
>
> -Igor
>
>
>
> On 3/6/06, jan_bar <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > how can I get Wicket version from my program? Something like:
> >
> > String Application.getVersion()
> >
> > In my opinion this is useful function. For instance when I write
> something,
> > that might not work well in next version of Wicket, I can assert on Wicket
> > version.
> >
> > Thanks, Jan
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to