Skip to content

Make environment configurable outside of provided jars #14656

@txtran

Description

@txtran

Jetty version
12.1.7

Jetty Environment
static

Enhancement Description

Hi,
As shown in the examples seen here https://jetty.org/docs/jetty/12.1/programming-guide/server/deploy.html, there is not an easy way to configure a specific environment's context for something like the static deployer. I understand that we have the option to override the StaticAppContext and provide our own setting such as the "dirAllowed" property for the entire server (and not just a specific application via the "app.properties" file). However, that would require us to create our own jar and add it to the classpath.
I wonder if it is possible to provide a more flexible option create the environment dynamically using our own custom StaticAppContext without having to deal with ClassLoader and what not? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions