OpenLiberty / OpenLiberty/liberty-tools-eclipse

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

Open
#483 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
16
Forks
20
Avg merge
2d 9h
Merged PRs (30d)
16

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading docs/common-server-parameters.md in the ci.maven repository and reviewing the referenced m2e Run Config UI example. Then locate the Eclipse Run/Debug configuration UI entry point; the issue does not name a source file or test. Done would mean a defined mini-wizard can assist with Liberty Maven property types and generate the appropriate parameter prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.