[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-user
Subject: Re: velocity.properties
From: csanders <csanders () hoovers ! com>
Date: 2008-05-02 20:55:38
Message-ID: 481B7FCA.4080109 () hoovers ! com
[Download RAW message or body]
Ok, I will try to add this within the next week.
Thanks,
Charlie
Will Glass-Husain wrote:
> Hey-- would love to see the ability to include system properties in
> velocity.properties. I use that feature in log4j.properties all the time.
>
> (Incidentally, it's always dangerous to credit individual authorship in an
> open source project. Jason Van Zyl, Jon Stevens and Daniel Rall were the
> original creators, with Geir following soon after.)
>
> Best,
> WILL
>
> On Fri, May 2, 2008 at 12:23 PM, Nathan Bubna <nbubna@gmail.com> wrote:
>
>
>> On Fri, May 2, 2008 at 11:55 AM, csanders <csanders@hoovers.com> wrote:
>>
>>>> are you deploying to a servlet container? if so, then the
>>>> FileResourceLoader is not your friend. you should be using the
>>>> WebappLoader (aka WebappResourceLoader) that is part of the
>>>> VelocityTools project. It uses servlet context relative paths.
>>>>
>>>>
>>> Ahh cool, Ill check that out. I know you're the author so its hard for
>>>
>> you
>>
>>> to present an unbiased view but are there any penalty performances
>>>
>> moving
>>
>>> to this loader ?
>>>
>> oh, and while Claude and i have done some tweaking on the
>> WebappLoader, Geir was the original creator. :)
>>
>>
>>>
>>>
>>>> i don't think it would be all that hard to add support for including>
>>>> environmental variables in the properties. you would pretty much just
>>>> watch for properties either coming in or going out of RuntimeInstance
>>>> for environment variables and do the replacement there. It would
>>>> probably be easiest to do this in RuntimeInstance#getProperty.
>>>>
>>>>
>>> Ok thanks.
>>>
>>> Thanks Nathan,
>>> Charlei
>>>
>>>
>>>
>>>
>>>
>>> Nathan Bubna wrote:
>>>
>>>
>>>> On Fri, May 2, 2008 at 7:50 AM, csanders <csanders@hoovers.com> wrote:
>>>>
>>>>
>>>>
>>>>> Is there anyway we can set relative paths in this file ?
>>>>>
>>>>>
>>>>>
>>>> in which file? in velocity.properties?
>>>>
>>>>
>>>>
>>>>
>>>>> This is the only configuration file out of dozens that doesn't
>>>>>
>> support
>>
>>> this and its making deployment a serious pain.
>>>
>>>>>
>>>>>
>>>> are you deploying to a servlet container? if so, then the
>>>> FileResourceLoader is not your friend. you should be using the
>>>> WebappLoader (aka WebappResourceLoader) that is part of the
>>>> VelocityTools project. It uses servlet context relative paths.
>>>>
>>>>
>>>>
>>>>
>>>>> Or can I use environmental variables in this file ? That would work
>>>>>
>>> also.
>>>
>>>>>
>>>>>
>>>> sounds like a useful thing to me!
>>>>
>>>>
>>>>
>>>>
>>>>> If not - how much development would it take to get this to work ?
>>>>>
>> It
>>
>>> might be worth it for us to contribute this to Velocity.
>>>
>>>>>
>>>>>
>>>> i don't think it would be all that hard to add support for including
>>>> environmental variables in the properties. you would pretty much just
>>>> watch for properties either coming in or going out of RuntimeInstance
>>>> for environment variables and do the replacement there. It would
>>>> probably be easiest to do this in RuntimeInstance#getProperty.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Thanks,
>>>>> Charlie
>>>>>
>>>>>
>>>>>
>> ---------------------------------------------------------------------
>>
>>>>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>>>>> For additional commands, e-mail: user-help@velocity.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>>>> For additional commands, e-mail: user-help@velocity.apache.org
>>>>
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>>> For additional commands, e-mail: user-help@velocity.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: user-help@velocity.apache.org
>>
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic