Skip to content

Commit

Permalink
change: allow compatibility settings override via system property
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Sep 13, 2023
1 parent 563432e commit 425605c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,12 @@ private String getSystemPropertyOverride() {

private void disableConfigWithReason(String reason) {
incompatibilityReason.append("\n ").append(reason);
LOGGER.info("Disabling config {}: {}", this.key, reason);
this.incompatibilityDetected = true;
if (!Boolean.getBoolean("com.ishland.c2me.base.config.ignoreIncompatibility")) {
LOGGER.info("Disabling config {}: {}", this.key, reason);
this.incompatibilityDetected = true;
} else {
LOGGER.info("Compatibility issues ignored by system property: {}: {}", this.key, reason);
}
}

private void generateDefaultEntry(Object def, Object incompatibleDef) {
Expand Down

0 comments on commit 425605c

Please sign in to comment.