Skip to content

Commit

Permalink
Merge pull request #439 from axonivy/jvm-module.options
Browse files Browse the repository at this point in the history
XIVY-9730 Remove fallback for old jvm-module.options location
  • Loading branch information
alexsuter authored Jun 17, 2024
2 parents 26302bc + 00679aa commit 3cc0ca4
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ public static String loadFromJvmOptionsFile(File identifyAndGetEngineDirectory,
private static List<String> loadJvmOptions(File engineDir, Log log) {
var jvmOptionsFile = engineDir.toPath().resolve("bin").resolve("jvm-module.options");
if (!Files.exists(jvmOptionsFile)) {
// Fallback: It was placed in another place in Axon Ivy Engine before 11.4.0
log.info("File does not exist '" + jvmOptionsFile + "'");
jvmOptionsFile = engineDir.toPath().resolve("configuration").resolve("jvm-module.options");
if (!Files.exists(jvmOptionsFile)) {
log.warn("Couldn't load jvm module options from '" + jvmOptionsFile + "' file.");
return List.of();
}
log.warn("Couldn't load jvm module options from '" + jvmOptionsFile + "' file.");
return List.of();
}

try {
Expand Down

0 comments on commit 3cc0ca4

Please sign in to comment.