Skip to content

Enhancement Request : Support for directory recursion and wildcards when defining config locations #1197

Description

@omasseau

Hello,

It would be great to be able to support directory recursion and wildcards when defining additional config locations.

What I would like to be possible is to automatically scan all .properties files under a given directory found in the classpath/or under a filesystem path, as additional locations for configuration properties files.
ex:
smallrye.config.locations=tenants/ (with tenants directory being in /resources/ of my project).

Currently we have to expicitely define the path of each .properties file under the directory :
smallrye.config.locations=tenants/fr/authentication.properties,tenants/fr/datasources.properties,tenants/lu/authentication.properties,tenants/lu/datasources.properties

It works but can be problematic when you may later have a lot of additional tenants.

What I would like to be is be able to define directories for each tenant of my application, each directory containing the properties associated to this tenant.
Example :

image

Being able to use wildcards in the path would be also great
ex :
smallrye.config.locations=tenants/*/*.properties

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions