[Lift] Re: Props file example

2009-10-13 Thread Richard Dallaway
On Mon, Oct 12, 2009 at 2:55 PM, my_li...@me.com wrote: And how do I switch runtimes? within the boot.scala? If I need to, I change the run mode at start up time: $ MAVEN_OPTS=-Drun.mode=pilot mvn jetty:run ...if that helps Richard --~--~-~--~~~---~--~~ You

[Lift] Re: Props file example

2009-10-12 Thread Peter Robinett
It's a simple java.properties file. You should place it in src/main/ resources/props. There is a search order but, off the top of my head, the last two options are the username running the app (e.g. peter.props) and default.props. My peter.props looks like this: db.driver=com.mysql.jdbc.Driver

[Lift] Re: Props file example

2009-10-12 Thread Timothy Perrett
Note that you can also intermix this with runtimes: default.props default.pilot.props Doing something like that can let you automatically load different properties based on the run mode lift is in (production vs dev etc) Your code will still look like: Props.get(some.key) //= Box[String]

[Lift] Re: Props file example

2009-10-12 Thread my_lists
Thanks for the information On Oct 12, 2009, at 3:36 PM, Peter Robinett wrote: It's a simple java.properties file. You should place it in src/main/ resources/props. There is a search order but, off the top of my head, the last two options are the username running the app (e.g. peter.props)