Then you could filter the applicationContext, or the
application.propertiesfile. This is what I do in my project (filter
application.properties)
On 10/20/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> You could use Spring and inject that value from applicationContext.xml or
> and external properties file.
>
> On 10/20/07, Jörg Schaible < [EMAIL PROTECTED]> wrote:
> >
> > Olivier Dehon wrote:
> >
> > > Hi,
> > >
> > > Is there a (simple) way to get the java source code in my project
> > > filtered the same way resources are?
> > > That is, in my java file, I could have:
> > >
> > > {code}
> > > private final static String MAVEN_VERSION = "${version}";
> > >You could use {code}
> > >
> > > and get ${version} replaced at build time?
> > >
> > > What I want to achieve here is a way of interrogating my app for its
> > > maven version number at run time, without having to rely on an
> > external
> > > file or resource.
> > >
> > > Thanks for any hints.
> >
> > Why not use the manifest ?
> >
> > - Jörg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
>
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---