Skip to content

Refactor some feature gen variables#520

Open
turkeylurkey wants to merge 3 commits into
OpenLiberty:generate-features-updatefrom
turkeylurkey:refactor-feature-gen
Open

Refactor some feature gen variables#520
turkeylurkey wants to merge 3 commits into
OpenLiberty:generate-features-updatefrom
turkeylurkey:refactor-feature-gen

Conversation

@turkeylurkey
Copy link
Copy Markdown
Member

Embrace the feature gen.

@turkeylurkey turkeylurkey requested a review from TrevCraw June 1, 2026 19:03
@turkeylurkey turkeylurkey self-assigned this Jun 1, 2026
Co-authored-by-AI: IBM Bob 1.0.2
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
@turkeylurkey turkeylurkey force-pushed the refactor-feature-gen branch from 65f5f51 to de7373a Compare June 1, 2026 23:17
import java.util.Set;

public abstract class BinaryScannerUtil {
public abstract class FeatureGenUtil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just want to think through this name change a bit. We are looking to consolidate the common code for GenerateFeaturesMojo.java and GenerateFeaturesTask.groovy. I assume the likely name for the class/file that contains the common code would be GenerateFeaturesUtil. If that is the case, we would have GenerateFeaturesUtil and FeatureGenUtil. I think it would be hard to differentiate the meaning of those file names. Should we use something like FeatureGenDriverUtil, FeatureGenJarUtil, or FeatureGeneratorUtil to show a clear distinction?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we have the method runFeatureGenerator() I think FeatureGeneratorUtil is the best choice.

Co-authored-by-AI: IBM Bob 1.0.3
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
// 6. IllegalTargetCombinationException means that the EE level and the MP level are not compatible.
Throwable scannerException = ite.getCause();
if (scannerException.getClass().getName().equals(PROVIDED_FEATURE_EXCEPTION)) {
Throwable featureGenException = ite.getCause();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion to change to generatorException

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants