I would like to be able to specify the path of the directory Lift search
for propreties file, for example I would like to put them in
"/etc/myLiftApplication/".
I looked in LiftRules and Props, and didn't find a way to overload the
defaults locations (/ and /props/).
Is this something possible ?
An easy workaround is to define in props/defaults.props an unique key
with the path of the configuration file to use, but I loose all the
Props integration in Lift, so I'm wondering if there is an other way.
Thanks,
--
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com
TBH, i wanted to factor out the props stuff so it could use other backing stores other than properties file (such as configgy)
Cheers, Tim
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
Imtiaz
Imtiaz Ahmed Hajee Esmail
Cell +91.98452 84561
Bangalore, India
Cheers, Tim
OK, thank you for the information. So I guess I'm going to avoid Props
for now, waiting for a more configurable path.
Thanks !
Hello guys,
I would like to be able to specify the path of the directory Lift search for propreties file, for example I would like to put them in "/etc/myLiftApplication/".
I looked in LiftRules and Props, and didn't find a way to overload the defaults locations (/ and /props/).
Is this something possible ?
An easy workaround is to define in props/defaults.props an unique key with the path of the configuration file to use, but I loose all the Props integration in Lift, so I'm wondering if there is an other way.
Thanks,
--
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Allow it to be overridden using a deployment descriptor?
Maybe an init-param in the web.xml?
Martin
Cheers, Tim
No, we've been here before. That is not early enough. It would need to be some kind of system property or such -Dprops.type=whatever....
Cheers, Tim
On 6 Jul 2010, at 16:19, Martin Ellis wrote:
> On 6 July 2010 14:23, David Pollak <feeder.of...@gmail.com> wrote:
>> It's a boot-strapping issue. The Props file is read very early... how do
>> you tell your app/Lift where the props file is if it's not a well known
>> location in the WAR?
>
> Allow it to be overridden using a deployment descriptor?
> Maybe an init-param in the web.xml?
>
> Martin
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
It's been a while since I looked at the boot code, but why isn't it
early enough to have a context param? I think there are a few other
issues that might confuse the issue:
- Props is in lift-util so can't rely on any servlet classes. This I
think can be worked around by having some lift internal code that sets
paths in Props when booted by a container.
- Some seem to believe that moving stuff into e.g web.xml doesn't make
a difference since this is embedded in the war anyway. But most
containers allow you to override context params from the outside.
I think the main issue is to be able to override the settings without
changing the war (e.g use the same war in different environments).
I don't think the -Dlift-props solution is the best one since this
breaks when several lift apps are deployed in the same jvm....
/Jeppe