Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Support for environment variables in jetty's configuration files?

Thanks a lot Greg!
Cheers,
Hugues

On Wed, Dec 28, 2011 at 8:29 AM, Greg Wilkins <gregw@xxxxxxxxxxx> wrote:
> I created issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=367591
> It is now implemented as the Env element:
>
>  <Env name="HOME" default="/some/value"/>
>
> cheers
>
>
> On 28 December 2011 10:27, Greg Wilkins <gregw@xxxxxxxxxxx> wrote:
>> Hugues,
>>
>> I don't see why not (nor can I remember why we don't support it).
>> If you raise a feature request I'll implement it!
>>
>> cheers
>>
>>
>> On 26 December 2011 12:06, Hugues Malphettes <hmalphettes@xxxxxxxxxxx> wrote:
>>> Hi there,
>>>
>>> I was wondering if we should add to jetty.xml the support to read
>>> environment variables.
>>>
>>> Jesse mentionned that there was some history related to supporting or
>>> not the environment variables.
>>> Hence here is the complete usecase.
>>>
>>> I completed a prototype to run jetty in Cloud-Foundry on github. It
>>> requires a new "vcap-staging" plugin.
>>> Cloudfoundry is runtime agnostic so all that is needed is a plugin to
>>> execute "java -jar start.jar"
>>> and a little glue code to read the port on which jetty should start.
>>> Cloudfoundry passes the value for the port as an environment variable.
>>>
>>> In fact Cloudfoundry also passes all the configuration parameters as
>>> values of environment variables.
>>> For example the connection to the databases are the values of the
>>> environment variable VCAP_SERVICES; serialized as JSON.
>>> And custom env variables are also supported.
>>>
>>> Should I file the request for enhancement and work on a patch eventually?
>>> Let me know if other people are working on cloudfoundry.
>>> We could work on an even tighter integration on the jetty-side and
>>> collaborate on the vcap plugin.
>>>
>>> Cheers,
>>> Hugues
>>> _______________________________________________
>>> jetty-dev mailing list
>>> jetty-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top