Skip to content
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

Interpolation doesn't work in the same resource file. #78

Closed
SentryMan opened this issue Jul 7, 2023 · 0 comments · Fixed by #82
Closed

Interpolation doesn't work in the same resource file. #78

SentryMan opened this issue Jul 7, 2023 · 0 comments · Fixed by #82

Comments

@SentryMan
Copy link
Collaborator

stuff like this doesn't work

database.schema=foobar
database.host=localhost
database.portPrefix=${global.portPrefix}
database.port=${global.portPrefix}5432
database.url=jdbc\:postgresql\://${database.host}\:${database.port}/${database.schema}
database.username=${database.schema}
database.password=${database.schema} 

Funnily enough, it works if you do it programmatically via setProperty. I guess because CoreMap uses a HashMap iterating over it doesn't guarantee that the keys are read and interpolated in the correct order

rob-bygrave added a commit that referenced this issue Jul 10, 2023
#78 Use recursive interpolation to evaluate property expressions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant