Skip to content

Variable references can be also resolved from environment variables - #25541

Merged
arjantijms merged 2 commits into
eclipse-ee4j:masterfrom
OndroMih:ondromih-variables-from-env-vars
Jun 13, 2025
Merged

Variable references can be also resolved from environment variables#25541
arjantijms merged 2 commits into
eclipse-ee4j:masterfrom
OndroMih:ondromih-variables-from-env-vars

Conversation

@OndroMih

@OndroMih OndroMih commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Variable references in the configuration, e.g. ${my.var}, can be resolved from environment variables if not in system properties.

MP Config rules apply - by default, resolves from sys props, then from env vars,
then from evn vars with _ for non-alphanum chars, then from env vars with upper case.

org.glassfish.variableexpansion.envvars.disabled system property disables this and allows only resolving from sys props as before.

org.glassfish.variableexpansion.envvars.preferred system property changes the priority - values are resolved first from env vars and then from sys props

@dmatej

dmatej commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

You need to merge this and rebase unless Apache fixes the download: #25542

@dmatej dmatej added this to the 7.1.0 milestone Jun 6, 2025
@OndroMih
OndroMih force-pushed the ondromih-variables-from-env-vars branch from a6b5642 to 13153de Compare June 7, 2025 13:35
@OndroMih

OndroMih commented Jun 7, 2025

Copy link
Copy Markdown
Contributor Author

Rebased on current master.

OndroMih added 2 commits June 8, 2025 20:24
MP Config rules apply - by default, resolves from sys props, then from env vars,
then from evn vars with _ for non-alphanum chars, then from env vars with upper case.

org.glassfish.variableexpansion.envvars.disabled system property disables this and allows only resolving from sys props as before.

org.glassfish.variableexpansion.envvars.preferred system property changes the priority - values are resolved first from env vars and then from sys props
@OndroMih
OndroMih force-pushed the ondromih-variables-from-env-vars branch from 13153de to 251d999 Compare June 8, 2025 18:29
@OndroMih

OndroMih commented Jun 8, 2025

Copy link
Copy Markdown
Contributor Author

Rebased again, to get the fix for Gjule.

@arjantijms
arjantijms merged commit 30bc25b into eclipse-ee4j:master Jun 13, 2025
@dmatej dmatej added the enhancement New feature or request label Jun 13, 2025
bvfalcon pushed a commit to bvfalcon/eclipse-glassfish that referenced this pull request Apr 25, 2026
â€Ķs-from-env-vars

Variable references can be also resolved from environment variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants