-
Notifications
You must be signed in to change notification settings - Fork 33
adding expansion variable resolution for server.env props #496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
venmanyarun
merged 10 commits into
OpenLiberty:main
from
venmanyarun:expansion_variable_server_env
Feb 3, 2026
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4aba9d2
adding expansion variable resolution for server.env props
venmanyarun bf90e73
adding more tests
venmanyarun a86c3eb
adding code for setting max recursion depth and eliminate circular ref
venmanyarun a5020f1
fixing windows tests
venmanyarun 0e6b312
updated log message
venmanyarun 7c49c87
removed max depth
venmanyarun c1c60e4
removed max depth
venmanyarun ecada0f
removed max depth
venmanyarun 4110f67
removed max depth
venmanyarun d345847
changes based on review comments
venmanyarun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 33 additions & 1 deletion
34
src/test/resources/serverConfig/liberty/wlp/usr/servers/defaultServer/server.env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,37 @@ | ||
| keystore_password=C7ANPlAi0MQD154BJ5ZOURn | ||
| http.port=1111 | ||
| # --- Base Definitions --- | ||
| overriden_value=old_value | ||
| this_value=DEFINED | ||
| bootstrap.properties.override=false | ||
| bootstrap.properties.override=false | ||
|
|
||
| # Combines multiple recursive lookups with forward property substitution linux | ||
| this7_value=${this3_value}/${overriden_value}/dir | ||
| # Combines multiple recursive lookups linux | ||
| this4_value=${this_value}/${overriden_value}/dir | ||
| this3_value=${this_value}_VAL | ||
| # self reference -> will throw warning but no infinite loop | ||
| self_ref_value=${this3_value}/${self_ref_value} | ||
| # circular reference -> will throw warning but no infinite loop | ||
| circ_v1=var_${circ_v2} | ||
| circ_v2=var_${circ_v1} | ||
|
|
||
| # Combines multiple recursive lookups with forward property substitution windows | ||
| this8_value=!this5_value!\\!overriden_value!\\dir | ||
| this2_value=!this_value!_VAL | ||
| # Combines multiple recursive lookups windows | ||
| this5_value=!this_value!\\!overriden_value!\\dir | ||
| this6_value=!this_val | ||
| # circular reference -> will throw warning but no infinite loop | ||
| circ_v1_win=var_!circ_v2_win! | ||
| circ_v2_win=var_!circ_v1_win! | ||
|
|
||
| # testing max recursion level, here since max level is 5, depth_max, depth_v7 will not be resolved | ||
| depth_max=${depth_v7} | ||
| depth_v7=v7_${depth_v6} | ||
| depth_v6=v6_${depth_v5} | ||
| depth_v5=v5_${depth_v4} | ||
| depth_v4=v4_${depth_v3} | ||
| depth_v3=v3_${depth_v2} | ||
| depth_v2=v2_${depth_v1} | ||
| depth_v1=1 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.