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

Provide Liberty-aware UI assistance for setting Liberty config via Maven properties on Run/Debug config #483

Open
scottkurz opened this issue Jan 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@scottkurz
Copy link
Member

As noted in https://github.com/OpenLiberty/ci.maven/blob/main/docs/common-server-parameters.md#setting-liberty-configuration-with-maven-project-properties one can use -Dliberty.var.abc=123 to cause LMP to generate a config dropin with a server config var named 'abc' set with a value of '123'. You can also set default vars, server.env entries, jvm.options, bootstrap.properties in analogous ways.

It could be nice for the feature UI to assist with this.

E.g. if we look at the m2e Run Config UI:

image

adding a parameter opens up a mini-wizard which offers the ability to access Eclipse workspace variables.

We could imagine a mini-wizard that offers a choice of property types: var, dflt vars, bootstrap.properties, etc. and generates the "liberty.var." part for you if you just type in the "suffix" of 'abc'.

EXTRA CREDIT

We could also imagine another layer of awareness where we actually look at variable/property references and suggest this set of strings as choices for the parameter "name". E.g. if there is a server.xml reference value=${abc} we might offer a choice of "abc" as the parameter name in the mini-wizard sketched out in the above design.

@scottkurz scottkurz added the enhancement New feature or request label Jan 22, 2024
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

No branches or pull requests

1 participant