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

[MENFORCER-495] Remove "JAVA_HOME" from rule violation message #346

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Jan 12, 2025

No description provided.

@elharo elharo marked this pull request as ready for review January 12, 2025 14:14
@@ -76,15 +76,15 @@ public void execute() throws EnforcerRuleException {
String message = getMessage();
if (message == null) {
message = String.format(
"%s is an excluded Required Java Vendor (JAVA_HOME=%s)",
"%s is an excluded Required Java Vendor (Detected JDK %s)",
Copy link
Member

Choose a reason for hiding this comment

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

detected JDK:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

SystemUtils.JAVA_VENDOR, SystemUtils.JAVA_HOME);
}
throw new EnforcerRuleException(message);
} else if (includes != null && !includes.contains(SystemUtils.JAVA_VENDOR)) {
String message = getMessage();
if (message == null) {
message = String.format(
"%s is not an included Required Java Vendor (JAVA_HOME=%s)",
"%s is not an included Required Java Vendor (Detected JDK %s)",
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@elharo elharo changed the title [MENFORCER-495] Remove JAVA_HOME from rule violation message [MENFORCER-495] Remove "JAVA_HOME" from rule violation message Jan 13, 2025
@elharo elharo merged commit 46f61df into master Jan 13, 2025
51 checks passed
@elharo elharo deleted the MENFORCER-495 branch January 13, 2025 13:15
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